mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-04 23:48:40 +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;
|
var scripts = (Deluge.debug) ? resources.debug_scripts : resources.scripts;
|
||||||
Ext.each(scripts, function(script) {
|
Ext.each(scripts, function(script) {
|
||||||
Ext.ux.JSLoader({
|
Ext.ux.JSLoader({
|
||||||
url: script,
|
url: deluge.config.base + script,
|
||||||
onLoad: this.onPluginLoaded,
|
onLoad: this.onPluginLoaded,
|
||||||
pluginName: resources.name
|
pluginName: resources.name
|
||||||
});
|
});
|
||||||
|
|
|
@ -146,7 +146,7 @@ class PluginManager(PluginManagerBase, component.Component):
|
||||||
return
|
return
|
||||||
info = gather_info(plugin)
|
info = gather_info(plugin)
|
||||||
info["name"] = name
|
info["name"] = name
|
||||||
info["scripts"] = ["/js/%s/%s" % (name.lower(), os.path.basename(s)) for s in info["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"]]
|
info["debug_scripts"] = ["js/%s/%s" % (name.lower(), os.path.basename(s)) for s in info["debug_scripts"]]
|
||||||
del info["script_directories"]
|
del info["script_directories"]
|
||||||
return info
|
return info
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue