From 489550fd7a5f793e5db2b411270093571067eca1 Mon Sep 17 00:00:00 2001 From: Calum Lind Date: Tue, 25 Aug 2015 14:48:21 +0100 Subject: [PATCH] [WebUI] Lint js files --- deluge/ui/web/js/deluge-all/Client.js | 14 +++++++------- deluge/ui/web/js/deluge-all/Toolbar.js | 2 +- deluge/ui/web/js/deluge-all/UI.js | 2 +- .../web/js/deluge-all/preferences/DownloadsPage.js | 2 +- .../web/js/deluge-all/preferences/InterfacePage.js | 6 +++--- .../web/js/deluge-all/preferences/NetworkPage.js | 2 +- .../ui/web/js/deluge-all/preferences/OtherPage.js | 4 +--- .../ui/web/js/deluge-all/preferences/ProxyField.js | 2 +- .../web/js/deluge-all/preferences/ProxyI2PField.js | 4 ++-- .../ui/web/js/deluge-all/preferences/ProxyPage.js | 2 +- 10 files changed, 19 insertions(+), 21 deletions(-) diff --git a/deluge/ui/web/js/deluge-all/Client.js b/deluge/ui/web/js/deluge-all/Client.js index 7b9ce2e1e..2bc0192c3 100644 --- a/deluge/ui/web/js/deluge-all/Client.js +++ b/deluge/ui/web/js/deluge-all/Client.js @@ -49,20 +49,20 @@ Ext.ux.util.RpcClient = Ext.extend(Ext.util.Observable, { _optionKeys: ['scope', 'success', 'failure'], + /** + * @event connected + * Fires when the client has retrieved the list of methods from the server. + * @param {Ext.ux.util.RpcClient} this + */ constructor: function(config) { + Ext.ux.util.RpcClient.superclass.constructor.call(this, config); this._url = config.url || null; this._id = 0; this.addEvents( - // raw events - /** - * @event connected - * Fires when the client has retrieved the list of methods from the server. - * @param {Ext.ux.util.RpcClient} this - */ + // raw events 'connected', - 'error' ); this.reloadMethods(); diff --git a/deluge/ui/web/js/deluge-all/Toolbar.js b/deluge/ui/web/js/deluge-all/Toolbar.js index 0e3b86a03..ede260673 100644 --- a/deluge/ui/web/js/deluge-all/Toolbar.js +++ b/deluge/ui/web/js/deluge-all/Toolbar.js @@ -43,7 +43,7 @@ Deluge.Toolbar = Ext.extend(Ext.Toolbar, { id: 'tbar-deluge-text', disabled: true, text: _('Deluge'), - iconCls: 'x-deluge-main-panel', + iconCls: 'x-deluge-main-panel' }, new Ext.Toolbar.Separator(), { id: 'create', diff --git a/deluge/ui/web/js/deluge-all/UI.js b/deluge/ui/web/js/deluge-all/UI.js index 402cf1aaa..be824a5c3 100644 --- a/deluge/ui/web/js/deluge-all/UI.js +++ b/deluge/ui/web/js/deluge-all/UI.js @@ -94,7 +94,7 @@ deluge.ui = { layout: 'fit', items: [ deluge.details - ], + ] }); this.MainPanel = new Ext.Panel({ diff --git a/deluge/ui/web/js/deluge-all/preferences/DownloadsPage.js b/deluge/ui/web/js/deluge-all/preferences/DownloadsPage.js index 50b3dffa9..c6a86151c 100644 --- a/deluge/ui/web/js/deluge-all/preferences/DownloadsPage.js +++ b/deluge/ui/web/js/deluge-all/preferences/DownloadsPage.js @@ -109,7 +109,7 @@ Deluge.preferences.Downloads = Ext.extend(Ext.FormPanel, { name: 'sequential_download', labelSeparator: '', height: 22, - boxLabel: _('Sequential download'), + boxLabel: _('Sequential download') })); optMan.bind('add_paused', fieldset.add({ name: 'add_paused', diff --git a/deluge/ui/web/js/deluge-all/preferences/InterfacePage.js b/deluge/ui/web/js/deluge-all/preferences/InterfacePage.js index 5f80aa589..a854cf9f2 100644 --- a/deluge/ui/web/js/deluge-all/preferences/InterfacePage.js +++ b/deluge/ui/web/js/deluge-all/preferences/InterfacePage.js @@ -95,17 +95,17 @@ Deluge.preferences.Interface = Ext.extend(Ext.form.FormPanel, { this.oldPassword = fieldset.add({ name: 'old_password', fieldLabel: _('Old Password:'), - labelSeparator: '', + labelSeparator: '' }); this.newPassword = fieldset.add({ name: 'new_password', fieldLabel: _('New Password:'), - labelSeparator: '', + labelSeparator: '' }); this.confirmPassword = fieldset.add({ name: 'confirm_password', fieldLabel: _('Confirm Password:'), - labelSeparator: '', + labelSeparator: '' }); var panel = fieldset.add({ diff --git a/deluge/ui/web/js/deluge-all/preferences/NetworkPage.js b/deluge/ui/web/js/deluge-all/preferences/NetworkPage.js index a361c04f5..f575bdbb2 100644 --- a/deluge/ui/web/js/deluge-all/preferences/NetworkPage.js +++ b/deluge/ui/web/js/deluge-all/preferences/NetworkPage.js @@ -68,7 +68,7 @@ Deluge.preferences.Network = Ext.extend(Ext.form.FormPanel, { fieldLabel: '', labelSeparator: '', width: 200, - vtype: 'IPAddress', + vtype: 'IPAddress' })); var fieldset = this.add({ diff --git a/deluge/ui/web/js/deluge-all/preferences/OtherPage.js b/deluge/ui/web/js/deluge-all/preferences/OtherPage.js index 9e56facfa..8b8d2a979 100644 --- a/deluge/ui/web/js/deluge-all/preferences/OtherPage.js +++ b/deluge/ui/web/js/deluge-all/preferences/OtherPage.js @@ -78,9 +78,7 @@ Deluge.preferences.Other = Ext.extend(Ext.form.FormPanel, { xtype: 'panel', border: false, bodyCfg: { - html: _('Help us improve Deluge by sending us your \ -Python version, PyGTK version, OS and processor \ -types. Absolutely no other information is sent.') + html: _('Help us improve Deluge by sending us your Python version, PyGTK version, OS and processor types. Absolutely no other information is sent.') } }); optMan.bind('send_info', fieldset.add({ diff --git a/deluge/ui/web/js/deluge-all/preferences/ProxyField.js b/deluge/ui/web/js/deluge-all/preferences/ProxyField.js index ed910ca72..04a0a6b84 100644 --- a/deluge/ui/web/js/deluge-all/preferences/ProxyField.js +++ b/deluge/ui/web/js/deluge-all/preferences/ProxyField.js @@ -142,7 +142,7 @@ Deluge.preferences.ProxyField = Ext.extend(Ext.form.FieldSet, { 'username': this.username.getValue(), 'password': this.password.getValue(), 'proxy_hostnames': this.proxy_host_resolve.getValue(), - 'proxy_peer_connections': this.proxy_peer_conn.getValue(), + 'proxy_peer_connections': this.proxy_peer_conn.getValue() } }, diff --git a/deluge/ui/web/js/deluge-all/preferences/ProxyI2PField.js b/deluge/ui/web/js/deluge-all/preferences/ProxyI2PField.js index 78f072348..0b3c692a6 100644 --- a/deluge/ui/web/js/deluge-all/preferences/ProxyI2PField.js +++ b/deluge/ui/web/js/deluge-all/preferences/ProxyI2PField.js @@ -74,7 +74,7 @@ Deluge.preferences.ProxyI2PField = Ext.extend(Ext.form.FieldSet, { getValue: function() { return { 'hostname': this.hostname.getValue(), - 'port': Number(this.port.getValue()), + 'port': Number(this.port.getValue()) } }, @@ -93,5 +93,5 @@ Deluge.preferences.ProxyI2PField = Ext.extend(Ext.form.FieldSet, { oldValues[field.getName()] = oldValue; this.fireEvent('change', this, newValues, oldValues); - }, + } }); diff --git a/deluge/ui/web/js/deluge-all/preferences/ProxyPage.js b/deluge/ui/web/js/deluge-all/preferences/ProxyPage.js index e1a738642..5cc24dd8a 100644 --- a/deluge/ui/web/js/deluge-all/preferences/ProxyPage.js +++ b/deluge/ui/web/js/deluge-all/preferences/ProxyPage.js @@ -81,7 +81,7 @@ Deluge.preferences.Proxy = Ext.extend(Ext.form.FormPanel, { getValue: function() { return { - 'proxy': this.proxy.getValue(), + 'proxy': this.proxy.getValue() } },