Changeset 4668 for sandbox/expressoMail1_2/MailArchiver/2.2/phpgwapi/js
- Timestamp:
- 07/04/11 16:43:04 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sandbox/expressoMail1_2/MailArchiver/2.2/phpgwapi/js/dftree/dftree.js
r1375 r4668 83 83 84 84 dNode.prototype.open = function () { 85 if (!this._io) 85 //window.alert('em dNode.prototype.open\n\nname = ' + this.id + '\nopened = ' + this._opened + '\nis opened = ' + this._io + '\ncaptionClass = ' + this.captionClass + '\nmyTree = ' + this._myTree.name); 86 if((expresso_mail_archive) && (expresso_mail_archive.enabled) )expresso_mail_archive.drawdata.treeName = this._myTree.name; 87 if (!this._io) 86 88 { 87 89 if (!this._opened && this.runJS && this.onFirstOpen != null) 88 90 { 89 eval(this.onFirstOpen); 91 alert('onfirstopen'); 92 eval(this.onFirstOpen); 90 93 } 91 94 else if (this.runJS && this.onOpen != null) 92 95 { 93 eval(this.onOpen); 94 } 95 96 alert('onOpen'); 97 eval(this.onOpen); 98 } 99 else if((this.id.substr(0,5) == 'local') && (!this._opened) && (!this._io) && (expresso_mail_archive.enabled)){ 100 if (this.id != 'local_root') 101 expresso_mail_archive.getFoldersList(this.id.substr(6)); 102 else 103 expresso_mail_archive.getFoldersList(""); 104 } 105 96 106 this._debug = true; 97 107 this._opened = true; … … 161 171 dNode.prototype._properPlus = function() 162 172 { 163 if (!this._io) 173 174 if (!this._io) 164 175 { 165 176 if (this._myTree.useIcons) … … 289 300 //FIXME put this in a separate function, as this will be necessary in 290 301 //various parts 302 303 //window.alert('this.onclick = ' + _this.onClick); 291 304 292 305 if (this.onClick) //FIXME when onclick && url … … 345 358 divN.appendChild(divCH); 346 359 347 360 348 361 if (this._parent != null) 349 362 { 350 363 parentChildrenDiv = getObjectById("ch"+this._parent.id+this._myTree.name); 351 364 } 352 365 else //is root 353 366 { 354 367 parentChildrenDiv = getObjectById("dftree_"+this._myTree.name); 355 368 } 356 369 357 370 if (parentChildrenDiv) 358 371 { 359 372 parentChildrenDiv.appendChild(divN); 360 373 } 361 374 } … … 459 472 var auxPos; 460 473 var addNode = false; 461 462 474 if (typeof (auxPos = this._searchNode(node.id)) != "number") 463 475 { 464 476 // if parent exists, add node as its child 465 477 if (typeof (auxPos = this._searchNode(pid)) == "number") 466 478 {
Note: See TracChangeset
for help on using the changeset viewer.