From bd7d10b81e5e28f420150c54e09a0334ddff4653 Mon Sep 17 00:00:00 2001 From: Calum Lind Date: Wed, 18 May 2016 09:53:09 +0100 Subject: [PATCH] [Lint] [WebUI] Fix issues raised by closure --- deluge/ui/web/js/deluge-all/Menus.js | 2 +- deluge/ui/web/js/deluge-all/Sidebar.js | 2 +- .../js/deluge-all/preferences/InterfacePage.js | 15 +++++++-------- .../web/js/deluge-all/preferences/PluginsPage.js | 2 +- .../deluge-all/preferences/PreferencesWindow.js | 2 +- deluge/ui/web/js/extjs/ext-extensions-debug.js | 10 +++++----- 6 files changed, 16 insertions(+), 17 deletions(-) diff --git a/deluge/ui/web/js/deluge-all/Menus.js b/deluge/ui/web/js/deluge-all/Menus.js index 1ae74e340..9d96b11b0 100644 --- a/deluge/ui/web/js/deluge-all/Menus.js +++ b/deluge/ui/web/js/deluge-all/Menus.js @@ -41,7 +41,7 @@ deluge.menus = { deluge.moveStorage.show(ids); break; } - }, + } } deluge.menus.torrent = new Ext.menu.Menu({ diff --git a/deluge/ui/web/js/deluge-all/Sidebar.js b/deluge/ui/web/js/deluge-all/Sidebar.js index f02fd5c33..9356f47de 100644 --- a/deluge/ui/web/js/deluge-all/Sidebar.js +++ b/deluge/ui/web/js/deluge-all/Sidebar.js @@ -35,7 +35,7 @@ Deluge.Sidebar = Ext.extend(Ext.Panel, { split: true, width: 200, minSize: 100, - collapsible: true, + collapsible: true }, config); Deluge.Sidebar.superclass.constructor.call(this, config); }, diff --git a/deluge/ui/web/js/deluge-all/preferences/InterfacePage.js b/deluge/ui/web/js/deluge-all/preferences/InterfacePage.js index a07e62aae..842853264 100644 --- a/deluge/ui/web/js/deluge-all/preferences/InterfacePage.js +++ b/deluge/ui/web/js/deluge-all/preferences/InterfacePage.js @@ -95,15 +95,15 @@ Deluge.preferences.Interface = Ext.extend(Ext.form.FormPanel, { this.oldPassword = fieldset.add({ name: 'old_password', - fieldLabel: _('Old:'), + fieldLabel: _('Old:') }); this.newPassword = fieldset.add({ name: 'new_password', - fieldLabel: _('New:'), + fieldLabel: _('New:') }); this.confirmPassword = fieldset.add({ name: 'confirm_password', - fieldLabel: _('Confirm:'), + fieldLabel: _('Confirm:') }); fieldset = this.add({ @@ -149,15 +149,14 @@ Deluge.preferences.Interface = Ext.extend(Ext.form.FormPanel, { disabled: true, name: 'pkey', width: 180, - fieldLabel: _('Private Key:'), - + fieldLabel: _('Private Key:') })); this.certField = om.bind('cert', fieldset.add({ xtype: 'textfield', disabled: true, name: 'cert', width: 180, - fieldLabel: _('Certificate:'), + fieldLabel: _('Certificate:') })); }, @@ -178,7 +177,7 @@ Deluge.preferences.Interface = Ext.extend(Ext.form.FormPanel, { msg: _('Do you want to refresh the page now to use the new language?'), buttons: { yes: _('Refresh'), - no: _('Close'), + no: _('Close') }, multiline : false, fn: function(btnText) { @@ -263,7 +262,7 @@ Deluge.preferences.Interface = Ext.extend(Ext.form.FormPanel, { }); deluge.client.webutils.get_languages({ success: this.onGotLanguages, - scope: this, + scope: this }); }, diff --git a/deluge/ui/web/js/deluge-all/preferences/PluginsPage.js b/deluge/ui/web/js/deluge-all/preferences/PluginsPage.js index 1beaf3f73..57c1cc852 100644 --- a/deluge/ui/web/js/deluge-all/preferences/PluginsPage.js +++ b/deluge/ui/web/js/deluge-all/preferences/PluginsPage.js @@ -50,7 +50,7 @@ Deluge.preferences.Plugins = Ext.extend(Ext.Panel, { store: new Ext.data.ArrayStore({ fields: [ {name: 'enabled', mapping: 0}, - {name: 'plugin', mapping: 1, sortType: 'asUCString'}, + {name: 'plugin', mapping: 1, sortType: 'asUCString'} ] }), columns: [{ diff --git a/deluge/ui/web/js/deluge-all/preferences/PreferencesWindow.js b/deluge/ui/web/js/deluge-all/preferences/PreferencesWindow.js index bcefe2899..45364afb1 100644 --- a/deluge/ui/web/js/deluge-all/preferences/PreferencesWindow.js +++ b/deluge/ui/web/js/deluge-all/preferences/PreferencesWindow.js @@ -77,7 +77,7 @@ Deluge.preferences.PreferencesWindow = Ext.extend(Ext.Window, { deferredRender: true }, autoScroll: true, - width: 300, + width: 300 }); this.addButton(_('Close'), this.onClose, this); diff --git a/deluge/ui/web/js/extjs/ext-extensions-debug.js b/deluge/ui/web/js/extjs/ext-extensions-debug.js index b6479fc32..38b665ff3 100644 --- a/deluge/ui/web/js/extjs/ext-extensions-debug.js +++ b/deluge/ui/web/js/extjs/ext-extensions-debug.js @@ -358,7 +358,7 @@ Ext.ux.form.SpinnerGroup = Ext.extend(Ext.form.CheckboxGroup, { layoutConfig: {columns: this.items.length}, defaults: this.defaults, items: this.items - }) + }); for(var i=0, len=this.items.length; i