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/ExtendedFileManager/assets/manager.js

    r962 r999  
    261261                         
    262262                var img = document.createElement('img'); 
    263                         img.src = window.opener._editor_url+'plugins/ExtendedFileManager/img/edit_paste.gif'; 
     263                        img.src = window.opener.Xinha.getPluginDir('ExtendedFileManager')+'/img/edit_paste.gif'; 
    264264                        img.alt = i18n('Paste'); 
    265265                        a.appendChild(img); 
     
    326326        { 
    327327          // Yup, need to resize 
    328           var resized = Xinha._geturlcontent(window.opener._editor_url + 'plugins/ExtendedFileManager/' + _backend_url + '&__function=resizer&img=' + encodeURIComponent(document.getElementById('f_url').value) + '&width=' + param.f_width + '&height=' + param.f_height); 
     328          var resized = Xinha._geturlcontent(window.opener.Xinha.getPluginDir('ExtendedFileManager') + '/' + _backend_url + '&__function=resizer&img=' + encodeURIComponent(document.getElementById('f_url').value) + '&width=' + param.f_width + '&height=' + param.f_height); 
    329329 
    330330          // alert(resized); 
Note: See TracChangeset for help on using the changeset viewer.