fix issue #1567, js from plugins not working with different base setting

This commit is contained in:
Damien Churchill 2011-05-06 22:08:59 +01:00
parent 922e64a07e
commit 5ad21303c6
2 changed files with 25 additions and 25 deletions

View File

@ -232,7 +232,7 @@ deluge.ui = {
var scripts = (Deluge.debug) ? resources.debug_scripts : resources.scripts;
Ext.each(scripts, function(script) {
Ext.ux.JSLoader({
url: script,
url: deluge.config.base + script,
onLoad: this.onPluginLoaded,
pluginName: resources.name
});

View File

@ -146,7 +146,7 @@ class PluginManager(PluginManagerBase, component.Component):
return
info = gather_info(plugin)
info["name"] = name
info["scripts"] = ["/js/%s/%s" % (name.lower(), os.path.basename(s)) for s in info["scripts"]]
info["debug_scripts"] = ["/js/%s/%s" % (name.lower(), os.path.basename(s)) for s in info["debug_scripts"]]
info["scripts"] = ["js/%s/%s" % (name.lower(), os.path.basename(s)) for s in info["scripts"]]
info["debug_scripts"] = ["js/%s/%s" % (name.lower(), os.path.basename(s)) for s in info["debug_scripts"]]
del info["script_directories"]
return info