Monotone-Parent: 471935c8bdc2cfc136eb85128892971dcf39e208

Monotone-Revision: 3f4219a57994d48948bd4148cb90b8d4c2c820df

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2006-12-20T22:54:46
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2006-12-20 22:54:46 +00:00
parent ee03cc8556
commit 526c4e0934
2 changed files with 20 additions and 0 deletions
+4
View File
@@ -1,5 +1,9 @@
2006-12-20 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* UI/WebServerResources/HTMLElement.js: replaced the functional
selectNode() and deselectNode() functions with select() and
deselect() methods of HTMLElement.
* UI/WebServerResources/ContactsUI.js: cleanup, most of the
events are initialized from here now instead of in the HTML code.
+16
View File
@@ -177,3 +177,19 @@ HTMLElement.prototype.attachMenu = function(menuName) {
this.sogoContextMenu = $(menuName);
this.addEventListener("contextmenu", this.onContextMenu, true);
}
HTMLElement.prototype.select = function() {
this.addClassName('_selected');
}
HTMLElement.prototype.deselect = function() {
this.removeClassName('_selected');
}
HTMLElement.prototype.deselectAll = function () {
for (var i = 0; i < this.childNodes.length; i++) {
var node = this.childNodes.item(i);
if (node.nodeType == 1)
node.deselect();
}
}