mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-06 12:05:28 +00:00
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:
@@ -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.
|
||||
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user