Changeset 41


Ignore:
Timestamp:
03/19/05 12:49:39 (15 years ago)
Author:
gogo
Message:

Applying #66

File:
1 edited

Legend:

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

    r39 r41  
    1616HTMLArea.Config.prototype.Linker = 
    1717{ 
    18   'backend' : _editor_url + 'plugins/Linker/scan.php' 
     18  'backend' : _editor_url + 'plugins/Linker/scan.php', 
     19  'files' : null 
    1920} 
    2021 
     
    311312  if(this.files == false) 
    312313  { 
    313     HTMLArea._getback(linker.lConfig.backend, function(txt) { lDialog.files = eval(txt); lDialog._prepareDialog(); }); 
     314    if(linker.lConfig.backend) 
     315    { 
     316        //get files from backend 
     317        HTMLArea._getback(linker.lConfig.backend, 
     318                          function(txt) { lDialog.files = eval(txt); lDialog._prepareDialog(); }); 
     319    } 
     320    else if(linker.lConfig.files != null) 
     321    { 
     322        //get files from plugin-config 
     323        lDialog.files = linker.lConfig.files; 
     324        lDialog._prepareDialog(); 
     325    } 
    314326    return; 
    315327  } 
Note: See TracChangeset for help on using the changeset viewer.