mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-08-28 17:57:38 +00:00
Monotone-Parent: 1cd01a11a7384ec7da33be5a6316e39e3024c38a
Monotone-Revision: 16bd3aa0fa9b1f29444120c9720217440143eb7d Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2007-05-04T15:57:23 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -10,15 +10,12 @@ HTMLElement.prototype.childNodesWithTag = function(tagName) {
|
||||
var tagName = tagName.toUpperCase();
|
||||
|
||||
for (var i = 0; i < this.childNodes.length; i++) {
|
||||
// log("(" + tagName + ") childNodes " + i + " = " + this.childNodes[i]);
|
||||
if (typeof(this.childNodes[i]) == "object"
|
||||
&& this.childNodes[i].tagName
|
||||
&& this.childNodes[i].tagName.toUpperCase() == tagName)
|
||||
matchingNodes.push(this.childNodes[i]);
|
||||
}
|
||||
|
||||
// log ("matching: " + matchingNodes.length);
|
||||
|
||||
return matchingNodes;
|
||||
}
|
||||
|
||||
@@ -163,14 +160,10 @@ HTMLElement.prototype.onContextMenu = function(event) {
|
||||
popup.style.top = menuTop + "px;";
|
||||
popup.style.left = menuLeft + "px;";
|
||||
popup.style.visibility = "visible;";
|
||||
// setupMenuTarget(popup, event.target);
|
||||
|
||||
bodyOnClick = "" + document.body.getAttribute("onclick");
|
||||
document.body.setAttribute("onclick", "onBodyClick(event);");
|
||||
document.currentPopupMenu = popup;
|
||||
|
||||
// event.cancelBubble = true;
|
||||
// event.returnValue = false;
|
||||
}
|
||||
|
||||
HTMLElement.prototype.attachMenu = function(menuName) {
|
||||
|
||||
Reference in New Issue
Block a user