Changeset 1240
- Timestamp:
- 02/18/10 04:44:24 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/plugins/MootoolsFileManager/MootoolsFileManager.js
r1239 r1240 63 63 var self = this; 64 64 var cfg = editor.config; 65 66 // "manager" will be the URL including the backend data, it has a trailing '&' 67 var manager = editor.config.MootoolsFileManager.backend; 68 if(cfg.MootoolsFileManager.backend_data != null) 69 { 70 for ( var i in cfg.MootoolsFileManager.backend_data ) 71 { 72 manager += i + '=' + encodeURIComponent(cfg.MootoolsFileManager.backend_data[i]) + '&'; 73 } 74 } 75 cfg.MootoolsFileManager.manager = manager; 76 77 // We read the rest of the configuration from PHP 78 Xinha._getback(manager+'__function=read-config', function(phpcfg) { eval ('var f = '+phpcfg+';'); self.hookUpButtons(f); }); 65 66 Xinha._postback(editor.config.MootoolsFileManager.backend+'__function=read-config', editor.config.MootoolsFileManager.backend_data, function(phpcfg) { eval ('var f = '+phpcfg+';'); self.hookUpButtons(f); }); 67 return; 79 68 }; 80 69 … … 176 165 this.current_link = link; 177 166 if(!this.FileManagerWidget) 178 { 167 { 179 168 this.FileManagerWidget = new FileManager({ 180 url: this.editor.config.MootoolsFileManager. manager,169 url: this.editor.config.MootoolsFileManager.backend +'__function=file-manager', 181 170 assetBasePath: Xinha.getPluginDir('MootoolsFileManager')+'/mootools-filemanager/Assets', 182 171 language: _editor_lang, … … 296 285 { 297 286 this.ImageManagerWidget = new FileManager({ 298 url: this.editor.config.MootoolsFileManager. manager+'__function=image-manager&',287 url: this.editor.config.MootoolsFileManager.backend+'__function=image-manager&', 299 288 assetBasePath: Xinha.getPluginDir('MootoolsFileManager')+'/mootools-filemanager/Assets', 300 289 language: _editor_lang,
Note: See TracChangeset
for help on using the changeset viewer.