diff --git a/deluge/ui/web/js/Deluge.Plugin.js b/deluge/ui/web/js/Deluge.Plugin.js new file mode 100644 index 000000000..b63cde9e0 --- /dev/null +++ b/deluge/ui/web/js/Deluge.Plugin.js @@ -0,0 +1,11 @@ +Deluge.Plugin = Ext.extend(Ext.util.Observable, { + constructor: function(config) { + this.name = config.name; + this.addEvents({ + "enabled": true, + "disabled": true + }); + this.isDelugePlugin = true; + Deluge.Plugin.superclass.constructor.call(config); + } +}); \ No newline at end of file diff --git a/deluge/ui/web/js/build.sh b/deluge/ui/web/js/build.sh index 88d4712bb..fa8053f44 100755 --- a/deluge/ui/web/js/build.sh +++ b/deluge/ui/web/js/build.sh @@ -1,4 +1,4 @@ -DELUGE_FILES="Deluge.js Deluge.Formatters.js Deluge.Menus.js Deluge.Events.js Deluge.OptionsManager.js Deluge.MultiOptionsManager.js Deluge.Add.js Deluge.Add.File.js Deluge.Add.Url.js Deluge.Client.js Deluge.ConnectionManager.js Deluge.Details.js Deluge.Details.Status.js Deluge.Details.Details.js Deluge.Details.Files.js Deluge.Details.Peers.js Deluge.Details.Options.js Deluge.EditTrackers.js Deluge.Keys.js Deluge.Login.js Deluge.Preferences.js Deluge.Preferences.Downloads.js Deluge.Preferences.Network.js Deluge.Preferences.Encryption.js Deluge.Preferences.Bandwidth.js Deluge.Preferences.Interface.js Deluge.Preferences.Other.js Deluge.Preferences.Daemon.js Deluge.Preferences.Queue.js Deluge.Preferences.Proxy.js Deluge.Preferences.Notification.js Deluge.Preferences.Cache.js Deluge.Preferences.Plugins.js Deluge.Remove.js Deluge.Sidebar.js Deluge.Statusbar.js Deluge.Toolbar.js Deluge.Torrents.js Deluge.UI.js" +DELUGE_FILES="Deluge.js Deluge.Formatters.js Deluge.Menus.js Deluge.Events.js Deluge.OptionsManager.js Deluge.MultiOptionsManager.js Deluge.Add.js Deluge.Add.File.js Deluge.Add.Url.js Deluge.Client.js Deluge.ConnectionManager.js Deluge.Details.js Deluge.Details.Status.js Deluge.Details.Details.js Deluge.Details.Files.js Deluge.Details.Peers.js Deluge.Details.Options.js Deluge.EditTrackers.js Deluge.Keys.js Deluge.Login.js Deluge.Plugin.js Deluge.Preferences.js Deluge.Preferences.Downloads.js Deluge.Preferences.Network.js Deluge.Preferences.Encryption.js Deluge.Preferences.Bandwidth.js Deluge.Preferences.Interface.js Deluge.Preferences.Other.js Deluge.Preferences.Daemon.js Deluge.Preferences.Queue.js Deluge.Preferences.Proxy.js Deluge.Preferences.Notification.js Deluge.Preferences.Cache.js Deluge.Preferences.Plugins.js Deluge.Remove.js Deluge.Sidebar.js Deluge.Statusbar.js Deluge.Toolbar.js Deluge.Torrents.js Deluge.UI.js" ALL_FILES="ext-extensions-debug.js $DELUGE_FILES" [ -e /usr/bin/jsdoc_toolkit ] && JSDOC="/usr/bin/jsdoc_toolkit" diff --git a/deluge/ui/web/server.py b/deluge/ui/web/server.py index 11cdc6f8e..4f82b497f 100644 --- a/deluge/ui/web/server.py +++ b/deluge/ui/web/server.py @@ -328,6 +328,7 @@ class TopLevel(resource.Resource): "/js/Deluge.EditTrackers.js", "/js/Deluge.Keys.js", "/js/Deluge.Login.js", + "/js/Deluge.Plugin.js", "/js/Deluge.Preferences.js", "/js/Deluge.Preferences.Downloads.js", "/js/Deluge.Preferences.Network.js",