diff options
author | Damien Churchill <damoc@gmail.com> | 2009-09-15 07:29:08 +0000 |
---|---|---|
committer | Damien Churchill <damoc@gmail.com> | 2009-09-15 07:29:08 +0000 |
commit | dcfa83bf094735223345ef04d7eeab79de2ffc1d (patch) | |
tree | 9b23ceb770ee7195cc502c41f672433994e7970c /deluge/ui/web/js/ext-extensions-debug.js | |
parent | cd0f4f69fb7536d39136d21abd6e7dc99e401936 (diff) | |
download | deluge-dcfa83bf094735223345ef04d7eeab79de2ffc1d.tar.gz deluge-dcfa83bf094735223345ef04d7eeab79de2ffc1d.tar.bz2 deluge-dcfa83bf094735223345ef04d7eeab79de2ffc1d.zip |
remove the js loader, doesn't work correctly
Diffstat (limited to 'deluge/ui/web/js/ext-extensions-debug.js')
-rw-r--r-- | deluge/ui/web/js/ext-extensions-debug.js | 48 |
1 files changed, 1 insertions, 47 deletions
diff --git a/deluge/ui/web/js/ext-extensions-debug.js b/deluge/ui/web/js/ext-extensions-debug.js index 3050ed683..1270308f2 100644 --- a/deluge/ui/web/js/ext-extensions-debug.js +++ b/deluge/ui/web/js/ext-extensions-debug.js @@ -993,50 +993,4 @@ Ext.override(Ext.form.TriggerField, { actionMode: 'wrap', onShow: Ext.form.TriggerField.superclass.onShow, onHide: Ext.form.TriggerField.superclass.onHide -}); - -Ext.ux.JSLoader = function(options) { - - Ext.ux.JSLoader.scripts[++Ext.ux.JSLoader.index] = { - url: options.url, - success: true, - jsLoadObj: null, - options: options, - onLoad: options.onLoad || Ext.emptyFn, - onError: options.onError || Ext.ux.JSLoader.stdError - }; - - Ext.Ajax.request({ - url: options.url, - params: options.params, - scriptIndex: Ext.ux.JSLoader.index, - success: function(response, options) { - var script = Ext.ux.JSLoader.scripts[options.scriptIndex]; - try { - script.jsLoadObj = Ext.decode(response.responseText); - Ext.applyIf(script.jsLoadObj,{jsLoad: function(){return Ext.ComponentMgr.create(script.jsLoadObj);}}); - var comp = script.jsLoadObj.jsLoad(); - if (comp.remoteInit){ - comp.remoteInit(); - } - } catch(e) { - script.success = false; - script.onError(script.options, e); - } - if (script.success) script.onLoad(comp,script.options); - }, - failure: function(response, options) { - var script = Ext.ux.JSLoader.scripts[options.scriptIndex]; - script.success = false; - script.onError(script.options, response.status); - } - }); -} - -Ext.ux.JSLoader.index = 0; -Ext.ux.JSLoader.scripts = []; - -Ext.ux.JSLoader.stdError = function(options, e) { - // throw(e); - window.alert('Error loading script:\n\n' + options.url + '\n\nstatus: ' + e); -}
\ No newline at end of file +});
\ No newline at end of file |