From 8bafc9f966cd9e80ee23268506b1a9e93c885969 Mon Sep 17 00:00:00 2001 From: Damien Churchill Date: Fri, 9 Apr 2010 22:13:42 +0100 Subject: [PATCH] tidy up and rename Remove.js to RemoveWindow.js --- .../deluge-all/{Remove.js => RemoveWindow.js} | 36 ++++++++----------- 1 file changed, 15 insertions(+), 21 deletions(-) rename deluge/ui/web/js/deluge-all/{Remove.js => RemoveWindow.js} (83%) diff --git a/deluge/ui/web/js/deluge-all/Remove.js b/deluge/ui/web/js/deluge-all/RemoveWindow.js similarity index 83% rename from deluge/ui/web/js/deluge-all/Remove.js rename to deluge/ui/web/js/deluge-all/RemoveWindow.js index b50d6471c..237ef0bf3 100644 --- a/deluge/ui/web/js/deluge-all/Remove.js +++ b/deluge/ui/web/js/deluge-all/RemoveWindow.js @@ -32,35 +32,29 @@ /** * @class Deluge.RemoveWindow + * @extends Ext.Window */ Deluge.RemoveWindow = Ext.extend(Ext.Window, { - - constructor: function(config) { - config = Ext.apply({ - title: _('Remove Torrent'), - layout: 'fit', - width: 350, - height: 100, - buttonAlign: 'right', - closeAction: 'hide', - closable: true, - plain: true, - iconCls: 'x-deluge-remove-window-icon' - }, config); - Deluge.RemoveWindow.superclass.constructor.call(this, config); - }, + + title: _('Remove Torrent'), + layout: 'fit', + width: 350, + height: 100, + + buttonAlign: 'right', + closeAction: 'hide', + closable: true, + iconCls: 'x-deluge-remove-window-icon', + plain: true, + + bodyStyle: 'padding: 5px; padding-left: 10px;', + html: 'Are you sure you wish to remove the torrent (s)?', initComponent: function() { Deluge.RemoveWindow.superclass.initComponent.call(this); this.addButton(_('Cancel'), this.onCancel, this); this.addButton(_('Remove With Data'), this.onRemoveData, this); this.addButton(_('Remove Torrent'), this.onRemove, this); - - this.add({ - border: false, - bodyStyle: 'padding: 5px; padding-left: 10px;', - html: 'Are you sure you wish to remove the torrent(s)?' - }); }, remove: function(removeData) {