mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-03 06:58:42 +00:00
fix issue #1567, js from plugins not working with different base setting
This commit is contained in:
parent
922e64a07e
commit
5ad21303c6
2 changed files with 25 additions and 25 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue