Ignore:
Timestamp:
07/04/11 16:43:04 (13 years ago)
Author:
fernando-alberto
Message:

Ticket #1269 - Desenvolvimento da nova solucao de arquivamento local MailArchiver?, nome da tree local

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sandbox/expressoMail1_2/MailArchiver/2.2/phpgwapi/js/dftree/dftree.js

    r1375 r4668  
    8383 
    8484dNode.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) 
    8688        { 
    8789                if (!this._opened && this.runJS && this.onFirstOpen != null) 
    8890                { 
    89                         eval(this.onFirstOpen); 
     91                        alert('onfirstopen'); 
     92                        eval(this.onFirstOpen); 
    9093                } 
    9194                else if (this.runJS && this.onOpen != null) 
    9295                { 
    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                 
    96106                this._debug = true; 
    97107                this._opened = true; 
     
    161171dNode.prototype._properPlus = function() 
    162172{ 
    163         if (!this._io)  
     173         
     174        if (!this._io)  
    164175        { 
    165176                if (this._myTree.useIcons) 
     
    289300        //FIXME put this in a separate function, as this will be necessary in  
    290301        //various parts 
     302         
     303        //window.alert('this.onclick = ' + _this.onClick); 
    291304 
    292305        if (this.onClick) //FIXME when onclick && url 
     
    345358        divN.appendChild(divCH); 
    346359         
    347  
     360         
    348361        if (this._parent != null) 
    349362        { 
    350                 parentChildrenDiv = getObjectById("ch"+this._parent.id+this._myTree.name); 
     363        parentChildrenDiv = getObjectById("ch"+this._parent.id+this._myTree.name); 
    351364        } 
    352365        else //is root 
    353366        { 
    354                 parentChildrenDiv = getObjectById("dftree_"+this._myTree.name); 
     367        parentChildrenDiv = getObjectById("dftree_"+this._myTree.name); 
    355368        } 
    356369         
    357370        if (parentChildrenDiv) 
    358371        { 
    359                 parentChildrenDiv.appendChild(divN); 
     372        parentChildrenDiv.appendChild(divN); 
    360373        } 
    361374} 
     
    459472        var auxPos; 
    460473        var addNode = false; 
    461  
    462474        if (typeof (auxPos = this._searchNode(node.id)) != "number") 
    463475        { 
    464                 // if parent exists, add node as its child 
     476                // if parent exists, add node as its child 
    465477                if (typeof (auxPos = this._searchNode(pid)) == "number") 
    466478                { 
Note: See TracChangeset for help on using the changeset viewer.