From d9870da82e260397af6317f4cce4239156470b48 Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Wed, 26 Mar 2008 21:20:11 +0000 Subject: [PATCH] Monotone-Parent: 3539c42aae20e261ff13b48d62442061a6765b69 Monotone-Revision: b6738412c65ed6255688a5d180f108d2c47b9414 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2008-03-26T21:20:11 Monotone-Branch: ca.inverse.sogo --- UI/WebServerResources/dtree.js | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/UI/WebServerResources/dtree.js b/UI/WebServerResources/dtree.js index 8167ce9ac..8e5b6274d 100644 --- a/UI/WebServerResources/dtree.js +++ b/UI/WebServerResources/dtree.js @@ -294,15 +294,17 @@ dTree.prototype.closeAllChildren = function(node) { // Change the status of a node(open or closed) dTree.prototype.nodeStatus = function(status, id, bottom) { eDiv = document.getElementById('d' + this.obj + id); - eJoin = document.getElementById('j' + this.obj + id); - if (this.config.useIcons) { - eIcon = document.getElementById('i' + this.obj + id); - eIcon.src = (status) ? this.aNodes[id].iconOpen : this.aNodes[id].icon; + if (eDiv) { + eJoin = document.getElementById('j' + this.obj + id); + if (this.config.useIcons) { + eIcon = document.getElementById('i' + this.obj + id); + eIcon.src = (status) ? this.aNodes[id].iconOpen : this.aNodes[id].icon; + } + eJoin.src = (this.config.useLines)? + ((status)?((bottom)?this.icon.minusBottom:this.icon.minus):((bottom)?this.icon.plusBottom:this.icon.plus)): + ((status)?this.icon.nlMinus:this.icon.nlPlus); + eDiv.style.display = (status) ? 'block': 'none'; } - eJoin.src = (this.config.useLines)? - ((status)?((bottom)?this.icon.minusBottom:this.icon.minus):((bottom)?this.icon.plusBottom:this.icon.plus)): - ((status)?this.icon.nlMinus:this.icon.nlPlus); - eDiv.style.display = (status) ? 'block': 'none'; };