Changeset 1257 for trunk/plugins/Linker


Ignore:
Timestamp:
05/10/10 09:31:01 (9 years ago)
Author:
gogo
Message:

ticket:1492
Fix linker in some situations.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/plugins/Linker/pluginMethods.js

    r1192 r1257  
    360360    if(typeof files[i] == 'string') 
    361361    { 
    362       this.dTree.add(Linker.nxtid++, parent, 
     362      this.dTree.add(this.Dialog_nxtid++, parent, 
    363363                     files[i].replace(/^.*\//, ''), 
    364364                     'javascript:document.getElementsByName(\'' + this.dialog.id.href + '\')[0].value=decodeURIComponent(\'' + encodeURIComponent(files[i]) + '\');document.getElementsByName(\'' + this.dialog.id.type + '\')[0].click();document.getElementsByName(\'' + this.dialog.id.href + '\')[0].focus();void(0);', 
     
    373373    else if(typeof files[i] == 'object') 
    374374    { 
    375       if(files[i].children) { 
    376         var id = this.Dialog_nxtid++; 
    377       } else { 
    378         var id = Linker.nxtid++; 
    379       } 
    380  
     375      var id = this.Dialog_nxtid++;      
    381376      if(files[i].title) var title = files[i].title; 
    382377      else if(files[i].url) var title = files[i].url.replace(/^.*\//, ''); 
Note: See TracChangeset for help on using the changeset viewer.