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:
Wolfgang Sourdeau
2007-05-04 15:57:23 +00:00
parent 6aa121c0f7
commit 37efe2b204
12 changed files with 139 additions and 139 deletions
-7
View File
@@ -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) {