Ignore:
Timestamp:
05/01/08 16:21:20 (11 years ago)
Author:
ray
Message:

#1195 Allow to specify an external url to load a plugin from

File:
1 edited

Legend:

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

    r997 r999  
    1717{ 
    1818  'treeCaption' : document.location.host, 
    19   'backend' : _editor_url + 'plugins/Linker/scan.php', 
     19  'backend' : Xinha.getPluginDir("Linker") + '/scan.php', 
    2020  'backend_data' : null, 
    2121  'files' : null 
     
    327327  if(typeof dTree == 'undefined') 
    328328  { 
    329     Xinha._loadback(_editor_url + 'plugins/Linker/dTree/dtree.js', 
     329    Xinha._loadback(Xinha.getPluginDir("Linker") + '/dTree/dtree.js', 
    330330                       function() {lDialog._prepareDialog(); } 
    331331                      ); 
     
    360360  if(this.html == false) 
    361361  { 
    362     Xinha._getback(_editor_url + 'plugins/Linker/dialog.html', function(txt) { lDialog.html = txt; lDialog._prepareDialog(); }); 
     362    Xinha._getback(Xinha.getPluginDir("Linker") + '/dialog.html', function(txt) { lDialog.html = txt; lDialog._prepareDialog(); }); 
    363363    return; 
    364364  } 
     
    369369  var dTreeName = Xinha.uniq('dTree_'); 
    370370 
    371   this.dTree = new dTree(dTreeName, _editor_url + 'plugins/Linker/dTree/'); 
     371  this.dTree = new dTree(dTreeName, Xinha.getPluginDir("Linker") + '/dTree/'); 
    372372  eval(dTreeName + ' = this.dTree'); 
    373373 
Note: See TracChangeset for help on using the changeset viewer.