mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-13 13:05:37 +00:00
fix issue #1567, js from plugins not working with different base setting
This commit is contained in:
parent
922e64a07e
commit
5ad21303c6
@ -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
|
||||
});
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user