diff --git a/deluge/ui/web/js/deluge-all/Deluge.Preferences.Bandwidth.js b/deluge/ui/web/js/deluge-all/Deluge.Preferences.Bandwidth.js index 76015f1a4..2c8a76d74 100644 --- a/deluge/ui/web/js/deluge-all/Deluge.Preferences.Bandwidth.js +++ b/deluge/ui/web/js/deluge-all/Deluge.Preferences.Bandwidth.js @@ -32,6 +32,11 @@ Copyright: */ Ext.namespace('Deluge.preferences'); + +/** + * @class Deluge.preferences.Bandwidth + * @extends Ext.form.FormPanel + */ Deluge.preferences.Bandwidth = Ext.extend(Ext.form.FormPanel, { constructor: function(config) { config = Ext.apply({ diff --git a/deluge/ui/web/js/deluge-all/Deluge.Preferences.Cache.js b/deluge/ui/web/js/deluge-all/Deluge.Preferences.Cache.js index bf7868287..f464fc445 100644 --- a/deluge/ui/web/js/deluge-all/Deluge.Preferences.Cache.js +++ b/deluge/ui/web/js/deluge-all/Deluge.Preferences.Cache.js @@ -32,6 +32,11 @@ Copyright: */ Ext.namespace('Deluge.preferences'); + +/** + * @class Deluge.preferences.Cache + * @extends Ext.form.FormPanel + */ Deluge.preferences.Cache = Ext.extend(Ext.form.FormPanel, { constructor: function(config) { config = Ext.apply({ diff --git a/deluge/ui/web/js/deluge-all/Deluge.Preferences.Daemon.js b/deluge/ui/web/js/deluge-all/Deluge.Preferences.Daemon.js index ac945bc5f..ca5654cbb 100644 --- a/deluge/ui/web/js/deluge-all/Deluge.Preferences.Daemon.js +++ b/deluge/ui/web/js/deluge-all/Deluge.Preferences.Daemon.js @@ -32,6 +32,11 @@ Copyright: */ Ext.namespace('Deluge.preferences'); + +/** + * @class Deluge.preferences.Daemon + * @extends Ext.form.FormPanel + */ Deluge.preferences.Daemon = Ext.extend(Ext.form.FormPanel, { constructor: function(config) { config = Ext.apply({ diff --git a/deluge/ui/web/js/deluge-all/Deluge.Preferences.Downloads.js b/deluge/ui/web/js/deluge-all/Deluge.Preferences.Downloads.js index 16d89c042..0d83f4c9a 100644 --- a/deluge/ui/web/js/deluge-all/Deluge.Preferences.Downloads.js +++ b/deluge/ui/web/js/deluge-all/Deluge.Preferences.Downloads.js @@ -32,6 +32,11 @@ Copyright: */ Ext.namespace('Deluge.preferences'); + +/** + * @class Deluge.preferences.Downloads + * @extends Ext.form.FormPanel + */ Deluge.preferences.Downloads = Ext.extend(Ext.FormPanel, { constructor: function(config) { config = Ext.apply({ diff --git a/deluge/ui/web/js/deluge-all/Deluge.Preferences.Encryption.js b/deluge/ui/web/js/deluge-all/Deluge.Preferences.Encryption.js index 8ae55767f..bed23e9a9 100644 --- a/deluge/ui/web/js/deluge-all/Deluge.Preferences.Encryption.js +++ b/deluge/ui/web/js/deluge-all/Deluge.Preferences.Encryption.js @@ -32,6 +32,11 @@ Copyright: */ Ext.namespace('Deluge.preferences'); + +/** + * @class Deluge.preferences.Encryption + * @extends Ext.form.FormPanel + */ Deluge.preferences.Encryption = Ext.extend(Ext.form.FormPanel, { constructor: function(config) { config = Ext.apply({ diff --git a/deluge/ui/web/js/deluge-all/Deluge.Preferences.Interface.js b/deluge/ui/web/js/deluge-all/Deluge.Preferences.Interface.js index 9b7e1d144..e30ff4a32 100644 --- a/deluge/ui/web/js/deluge-all/Deluge.Preferences.Interface.js +++ b/deluge/ui/web/js/deluge-all/Deluge.Preferences.Interface.js @@ -32,6 +32,11 @@ Copyright: */ Ext.namespace('Deluge.preferences'); + +/** + * @class Deluge.preferences.Interface + * @extends Ext.form.FormPanel + */ Deluge.preferences.Interface = Ext.extend(Ext.form.FormPanel, { constructor: function(config) { config = Ext.apply({ diff --git a/deluge/ui/web/js/deluge-all/Deluge.Preferences.Network.js b/deluge/ui/web/js/deluge-all/Deluge.Preferences.Network.js index f45307cf5..520075d22 100644 --- a/deluge/ui/web/js/deluge-all/Deluge.Preferences.Network.js +++ b/deluge/ui/web/js/deluge-all/Deluge.Preferences.Network.js @@ -33,6 +33,10 @@ Copyright: Ext.namespace('Deluge.preferences'); +/** + * @class Deluge.preferences.Network + * @extends Ext.form.FormPanel + */ Deluge.preferences.Network = Ext.extend(Ext.form.FormPanel, { constructor: function(config) { config = Ext.apply({ diff --git a/deluge/ui/web/js/deluge-all/Deluge.Preferences.Other.js b/deluge/ui/web/js/deluge-all/Deluge.Preferences.Other.js index b51b09d1f..ff4368143 100644 --- a/deluge/ui/web/js/deluge-all/Deluge.Preferences.Other.js +++ b/deluge/ui/web/js/deluge-all/Deluge.Preferences.Other.js @@ -32,6 +32,11 @@ Copyright: */ Ext.namespace('Deluge.preferences'); + +/** + * @class Deluge.preferences.Other + * @extends Ext.form.FormPanel + */ Deluge.preferences.Other = Ext.extend(Ext.form.FormPanel, { constructor: function(config) { config = Ext.apply({ diff --git a/deluge/ui/web/js/deluge-all/Deluge.Preferences.Plugins.js b/deluge/ui/web/js/deluge-all/Deluge.Preferences.Plugins.js index ade7da902..66568aeef 100644 --- a/deluge/ui/web/js/deluge-all/Deluge.Preferences.Plugins.js +++ b/deluge/ui/web/js/deluge-all/Deluge.Preferences.Plugins.js @@ -33,7 +33,11 @@ Copyright: Ext.namespace('Deluge.preferences'); -Deluge.preferences.InstallPlugin = Ext.extend(Ext.Window, { +/** + * @class Deluge.preferences.InstallPluginWindow + * @extends Ext.Window + */ +Deluge.preferences.InstallPluginWindow = Ext.extend(Ext.Window, { height: 115, width: 350, @@ -104,8 +108,11 @@ Deluge.preferences.InstallPlugin = Ext.extend(Ext.Window, { } } }); - +/** + * @class Deluge.preferences.Plugins + * @extends Ext.Panel + */ Deluge.preferences.Plugins = Ext.extend(Ext.Panel, { constructor: function(config) { config = Ext.apply({ @@ -184,7 +191,7 @@ Deluge.preferences.Plugins = Ext.extend(Ext.Panel, { cls: 'x-btn-text-icon', iconCls: 'x-deluge-install-plugin', text: _('Install'), - handler: this.onInstallPlugin, + handler: this.onInstallPluginWindow, scope: this }, '->', { cls: 'x-btn-text-icon', @@ -288,9 +295,9 @@ Deluge.preferences.Plugins = Ext.extend(Ext.Panel, { delete info; }, - onInstallPlugin: function() { + onInstallPluginWindow: function() { if (!this.installWindow) { - this.installWindow = new Deluge.preferences.InstallPlugin(); + this.installWindow = new Deluge.preferences.InstallPluginWindow(); this.installWindow.on('pluginadded', this.onPluginInstall, this); } this.installWindow.show(); diff --git a/deluge/ui/web/js/deluge-all/Deluge.Preferences.Proxy.js b/deluge/ui/web/js/deluge-all/Deluge.Preferences.Proxy.js index 48cd29cc7..dd555e1d5 100644 --- a/deluge/ui/web/js/deluge-all/Deluge.Preferences.Proxy.js +++ b/deluge/ui/web/js/deluge-all/Deluge.Preferences.Proxy.js @@ -32,6 +32,11 @@ Copyright: */ Ext.namespace('Deluge.preferences'); + +/** + * @class Deluge.preferences.ProxyField + * @extends Ext.form.FormSet + */ Deluge.preferences.ProxyField = Ext.extend(Ext.form.FieldSet, { constructor: function(config) { @@ -165,7 +170,10 @@ Deluge.preferences.ProxyField = Ext.extend(Ext.form.FieldSet, { } }); - +/** + * @class Deluge.preferences.Proxy + * @extends Ext.form.FormPanel + */ Deluge.preferences.Proxy = Ext.extend(Ext.form.FormPanel, { constructor: function(config) { config = Ext.apply({ diff --git a/deluge/ui/web/js/deluge-all/Deluge.Preferences.Queue.js b/deluge/ui/web/js/deluge-all/Deluge.Preferences.Queue.js index 3a8487b29..901b41f70 100644 --- a/deluge/ui/web/js/deluge-all/Deluge.Preferences.Queue.js +++ b/deluge/ui/web/js/deluge-all/Deluge.Preferences.Queue.js @@ -32,6 +32,11 @@ Copyright: */ Ext.namespace('Deluge.preferences'); + +/** + * @class Deluge.preferences.Queue + * @extends Ext.form.FormPanel + */ Deluge.preferences.Queue = Ext.extend(Ext.form.FormPanel, { constructor: function(config) { config = Ext.apply({ diff --git a/deluge/ui/web/js/deluge-all/Deluge.Preferences.js b/deluge/ui/web/js/deluge-all/Deluge.Preferences.js index 02b30daeb..552454456 100644 --- a/deluge/ui/web/js/deluge-all/Deluge.Preferences.js +++ b/deluge/ui/web/js/deluge-all/Deluge.Preferences.js @@ -34,7 +34,11 @@ Copyright: PreferencesRecord = Ext.data.Record.create([{name:'name', type:'string'}]); -Deluge.PreferencesWindow = Ext.extend(Ext.Window, { +/** + * @class Deluge.preferences.PreferencesWindow + * @extends Ext.Window + */ +Deluge.preferences.PreferencesWindow = Ext.extend(Ext.Window, { /** * @property {String} currentPage The currently selected page. @@ -54,7 +58,7 @@ Deluge.PreferencesWindow = Ext.extend(Ext.Window, { resizable: false, initComponent: function() { - Deluge.PreferencesWindow.superclass.initComponent.call(this); + Deluge.preferences.PreferencesWindow.superclass.initComponent.call(this); this.categoriesGrid = this.add({ xtype: 'grid', @@ -206,4 +210,4 @@ Deluge.PreferencesWindow = Ext.extend(Ext.Window, { this.hide(); } }); -deluge.preferences = new Deluge.PreferencesWindow(); +deluge.preferences = new Deluge.preferences.PreferencesWindow();