From 5c05d3d7ea76c85cf1d43e904f5d54e8f2b359c7 Mon Sep 17 00:00:00 2001 From: Calum Lind Date: Thu, 20 Aug 2015 19:23:26 +0100 Subject: [PATCH] [WebUI] Cleanup stray whitespace --- deluge/ui/web/js/deluge-all/EventsManager.js | 8 +++---- deluge/ui/web/js/deluge-all/FileBrowser.js | 2 +- .../web/js/deluge-all/MultiOptionsManager.js | 16 ++++++------- deluge/ui/web/js/deluge-all/Toolbar.js | 24 +++++++++---------- deluge/ui/web/js/deluge-all/add/FileWindow.js | 8 +++---- deluge/ui/web/js/deluge-all/add/Infohash.js | 2 +- deluge/ui/web/js/deluge-all/add/Window.js | 2 +- .../ui/web/js/deluge-all/data/PeerRecord.js | 2 +- .../preferences/InstallPluginWindow.js | 8 +++---- 9 files changed, 36 insertions(+), 36 deletions(-) diff --git a/deluge/ui/web/js/deluge-all/EventsManager.js b/deluge/ui/web/js/deluge-all/EventsManager.js index 0204b3e7b..36964e10b 100644 --- a/deluge/ui/web/js/deluge-all/EventsManager.js +++ b/deluge/ui/web/js/deluge-all/EventsManager.js @@ -1,6 +1,6 @@ /*! * Deluge.EventsManager.js - * + * * Copyright (c) Damien Churchill 2009-2010 * * This program is free software; you can redistribute it and/or modify @@ -42,7 +42,7 @@ Deluge.EventsManager = Ext.extend(Ext.util.Observable, { this.on('login', this.onLogin, this); Deluge.EventsManager.superclass.constructor.call(this); }, - + /** * Append an event handler to this object. */ @@ -116,14 +116,14 @@ Deluge.EventsManager = Ext.extend(Ext.util.Observable, { /** * Appends an event handler to this object (shorthand for {@link #addListener}) - * @method + * @method */ Deluge.EventsManager.prototype.on = Deluge.EventsManager.prototype.addListener /** * Fires the specified event with the passed parameters (minus the * event name). - * @method + * @method */ Deluge.EventsManager.prototype.fire = Deluge.EventsManager.prototype.fireEvent deluge.events = new Deluge.EventsManager(); diff --git a/deluge/ui/web/js/deluge-all/FileBrowser.js b/deluge/ui/web/js/deluge-all/FileBrowser.js index 0487847bd..030e12cfb 100644 --- a/deluge/ui/web/js/deluge-all/FileBrowser.js +++ b/deluge/ui/web/js/deluge-all/FileBrowser.js @@ -1,6 +1,6 @@ /*! * Deluge.FileBrowser.js - * + * * Copyright (c) Damien Churchill 2010 * * This program is free software; you can redistribute it and/or modify diff --git a/deluge/ui/web/js/deluge-all/MultiOptionsManager.js b/deluge/ui/web/js/deluge-all/MultiOptionsManager.js index fac4c666f..73b60f246 100644 --- a/deluge/ui/web/js/deluge-all/MultiOptionsManager.js +++ b/deluge/ui/web/js/deluge-all/MultiOptionsManager.js @@ -1,6 +1,6 @@ /*! * Deluge.MultiOptionsManager.js - * + * * Copyright (c) Damien Churchill 2009-2010 * * This program is free software; you can redistribute it and/or modify @@ -43,7 +43,7 @@ Deluge.MultiOptionsManager = Ext.extend(Deluge.OptionsManager, { this.stored = {}; Deluge.MultiOptionsManager.superclass.constructor.call(this, config); }, - + /** * Changes bound fields to use the specified id. * @param {String} id @@ -70,7 +70,7 @@ Deluge.MultiOptionsManager = Ext.extend(Deluge.OptionsManager, { this.stored[this.currentId] = Ext.apply(this.stored[this.currentId], this.changed[this.currentId]); this.reset(); }, - + /** * Get the value for an option * @param {String/Array} option A single option or an array of options to return. @@ -164,15 +164,15 @@ Deluge.MultiOptionsManager = Ext.extend(Deluge.OptionsManager, { } else { var oldValue = this.getDefault(option); value = this.convertValueType(oldValue, value); - - // If the value is the same as the old value there is + + // If the value is the same as the old value there is // no point in setting it again. if (oldValue == value) return; - + // Store the new default if (!this.stored[this.currentId]) this.stored[this.currentId] = {}; this.stored[this.currentId][option] = value; - + if (!this.isDirty(option)) { this.fireEvent('changed', option, value, oldValue); } @@ -197,7 +197,7 @@ Deluge.MultiOptionsManager = Ext.extend(Deluge.OptionsManager, { var defaultValue = this.getDefault(option); value = this.convertValueType(defaultValue, value); - + var oldValue = this.get(option); if (oldValue == value) return; diff --git a/deluge/ui/web/js/deluge-all/Toolbar.js b/deluge/ui/web/js/deluge-all/Toolbar.js index 4b2473460..0e3b86a03 100644 --- a/deluge/ui/web/js/deluge-all/Toolbar.js +++ b/deluge/ui/web/js/deluge-all/Toolbar.js @@ -1,6 +1,6 @@ /*! * Deluge.Toolbar.js - * + * * Copyright (c) Damien Churchill 2009-2010 * * This program is free software; you can redistribute it and/or modify @@ -123,53 +123,53 @@ Deluge.Toolbar = Ext.extend(Ext.Toolbar, { connectedButtons: [ 'add', 'remove', 'pause', 'resume', 'up', 'down' ], - + initComponent: function() { Deluge.Toolbar.superclass.initComponent.call(this); deluge.events.on('connect', this.onConnect, this); deluge.events.on('login', this.onLogin, this); }, - + onConnect: function() { Ext.each(this.connectedButtons, function(buttonId) { this.items.get(buttonId).enable(); }, this); }, - + onDisconnect: function() { Ext.each(this.connectedButtons, function(buttonId) { this.items.get(buttonId).disable(); }, this); }, - + onLogin: function() { this.items.get('logout').enable(); }, - + onLogout: function() { this.items.get('logout').disable(); deluge.login.logout(); }, - + onConnectionManagerClick: function() { deluge.connectionManager.show(); }, - + onHelpClick: function() { window.open('http://dev.deluge-torrent.org/wiki/UserGuide'); }, - + onPreferencesClick: function() { deluge.preferences.show(); }, - + onTorrentAction: function(item) { var selection = deluge.torrents.getSelections(); var ids = []; Ext.each(selection, function(record) { ids.push(record.id); }); - + switch (item.id) { case 'remove': deluge.removeWindow.show(ids); @@ -192,7 +192,7 @@ Deluge.Toolbar = Ext.extend(Ext.Toolbar, { break; } }, - + onTorrentAdd: function() { deluge.add.show(); } diff --git a/deluge/ui/web/js/deluge-all/add/FileWindow.js b/deluge/ui/web/js/deluge-all/add/FileWindow.js index 0a42147e5..29185d9c5 100644 --- a/deluge/ui/web/js/deluge-all/add/FileWindow.js +++ b/deluge/ui/web/js/deluge-all/add/FileWindow.js @@ -51,7 +51,7 @@ Deluge.add.FileWindow = Ext.extend(Deluge.add.Window, { initComponent: function() { Deluge.add.FileWindow.superclass.initComponent.call(this); this.addButton(_('Add'), this.onAddClick, this); - + this.form = this.add({ xtype: 'form', baseCls: 'x-plain', @@ -72,7 +72,7 @@ Deluge.add.FileWindow = Ext.extend(Deluge.add.Window, { }] }); }, - + // private onAddClick: function(field, e) { if (this.form.getForm().isValid()) { @@ -89,7 +89,7 @@ Deluge.add.FileWindow = Ext.extend(Deluge.add.Window, { this.fireEvent('beforeadd', this.torrentId, name); } }, - + // private onGotInfo: function(info, obj, response, request) { info['filename'] = request.options.filename; @@ -100,7 +100,7 @@ Deluge.add.FileWindow = Ext.extend(Deluge.add.Window, { onUploadFailure: function(form, action) { this.hide(); }, - + // private onUploadSuccess: function(fp, upload) { this.hide(); diff --git a/deluge/ui/web/js/deluge-all/add/Infohash.js b/deluge/ui/web/js/deluge-all/add/Infohash.js index ab006fd9f..90a4ac432 100644 --- a/deluge/ui/web/js/deluge-all/add/Infohash.js +++ b/deluge/ui/web/js/deluge-all/add/Infohash.js @@ -1,6 +1,6 @@ /*! * Deluge.add.Infohash.js - * + * * Copyright (c) Damien Churchill 2009-2010 * * This program is free software; you can redistribute it and/or modify diff --git a/deluge/ui/web/js/deluge-all/add/Window.js b/deluge/ui/web/js/deluge-all/add/Window.js index b47c5d658..339c52f1c 100644 --- a/deluge/ui/web/js/deluge-all/add/Window.js +++ b/deluge/ui/web/js/deluge-all/add/Window.js @@ -1,6 +1,6 @@ /*! * Deluge.add.Window.js - * + * * Copyright (c) Damien Churchill 2009-2010 * * This program is free software; you can redistribute it and/or modify diff --git a/deluge/ui/web/js/deluge-all/data/PeerRecord.js b/deluge/ui/web/js/deluge-all/data/PeerRecord.js index 0fdd58e9b..bad10fe6c 100644 --- a/deluge/ui/web/js/deluge-all/data/PeerRecord.js +++ b/deluge/ui/web/js/deluge-all/data/PeerRecord.js @@ -1,6 +1,6 @@ /*! * Deluge.data.PeerRecord.js - * + * * Copyright (c) Damien Churchill 2009-2010 * * This program is free software; you can redistribute it and/or modify diff --git a/deluge/ui/web/js/deluge-all/preferences/InstallPluginWindow.js b/deluge/ui/web/js/deluge-all/preferences/InstallPluginWindow.js index 2fea7915e..53669086f 100644 --- a/deluge/ui/web/js/deluge-all/preferences/InstallPluginWindow.js +++ b/deluge/ui/web/js/deluge-all/preferences/InstallPluginWindow.js @@ -1,6 +1,6 @@ /*! * Deluge.preferences.InstallPluginWindow.js - * + * * Copyright (c) Damien Churchill 2009-2010 * * This program is free software; you can redistribute it and/or modify @@ -41,7 +41,7 @@ Deluge.preferences.InstallPluginWindow = Ext.extend(Ext.Window, { layout: 'fit', height: 115, width: 350, - + bodyStyle: 'padding: 10px 5px;', buttonAlign: 'center', closeAction: 'hide', @@ -52,7 +52,7 @@ Deluge.preferences.InstallPluginWindow = Ext.extend(Ext.Window, { initComponent: function() { Deluge.add.FileWindow.superclass.initComponent.call(this); this.addButton(_('Install'), this.onInstall, this); - + this.form = this.add({ xtype: 'form', baseCls: 'x-plain', @@ -78,7 +78,7 @@ Deluge.preferences.InstallPluginWindow = Ext.extend(Ext.Window, { waitMsg: _('Uploading your plugin...'), success: this.onUploadSuccess, scope: this - }); + }); }, onUploadPlugin: function(info, obj, response, request) {