Changeset 1240 for trunk/plugins


Ignore:
Timestamp:
02/18/10 04:44:24 (10 years ago)
Author:
gogo
Message:

Correction to changeset:1239
Ticket:1502

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/plugins/MootoolsFileManager/MootoolsFileManager.js

    r1239 r1240  
    6363  var self = this; 
    6464  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;   
    7968}; 
    8069 
     
    176165    this.current_link = link; 
    177166    if(!this.FileManagerWidget) 
    178     { 
     167    {     
    179168      this.FileManagerWidget = new FileManager({ 
    180         url:            this.editor.config.MootoolsFileManager.manager, 
     169        url:            this.editor.config.MootoolsFileManager.backend +'__function=file-manager', 
    181170        assetBasePath:  Xinha.getPluginDir('MootoolsFileManager')+'/mootools-filemanager/Assets', 
    182171        language:       _editor_lang, 
     
    296285  { 
    297286    this.ImageManagerWidget = new FileManager({ 
    298       url:            this.editor.config.MootoolsFileManager.manager+'__function=image-manager&', 
     287      url:            this.editor.config.MootoolsFileManager.backend+'__function=image-manager&', 
    299288      assetBasePath:  Xinha.getPluginDir('MootoolsFileManager')+'/mootools-filemanager/Assets', 
    300289      language:       _editor_lang, 
Note: See TracChangeset for help on using the changeset viewer.