tidy up and rename Remove.js to RemoveWindow.js

This commit is contained in:
Damien Churchill 2010-04-09 22:13:42 +01:00
commit 8bafc9f966

View file

@ -32,35 +32,29 @@
/** /**
* @class Deluge.RemoveWindow * @class Deluge.RemoveWindow
* @extends Ext.Window
*/ */
Deluge.RemoveWindow = Ext.extend(Ext.Window, { Deluge.RemoveWindow = Ext.extend(Ext.Window, {
constructor: function(config) { title: _('Remove Torrent'),
config = Ext.apply({ layout: 'fit',
title: _('Remove Torrent'), width: 350,
layout: 'fit', height: 100,
width: 350,
height: 100, buttonAlign: 'right',
buttonAlign: 'right', closeAction: 'hide',
closeAction: 'hide', closable: true,
closable: true, iconCls: 'x-deluge-remove-window-icon',
plain: true, plain: true,
iconCls: 'x-deluge-remove-window-icon'
}, config); bodyStyle: 'padding: 5px; padding-left: 10px;',
Deluge.RemoveWindow.superclass.constructor.call(this, config); html: 'Are you sure you wish to remove the torrent (s)?',
},
initComponent: function() { initComponent: function() {
Deluge.RemoveWindow.superclass.initComponent.call(this); Deluge.RemoveWindow.superclass.initComponent.call(this);
this.addButton(_('Cancel'), this.onCancel, this); this.addButton(_('Cancel'), this.onCancel, this);
this.addButton(_('Remove With Data'), this.onRemoveData, this); this.addButton(_('Remove With Data'), this.onRemoveData, this);
this.addButton(_('Remove Torrent'), this.onRemove, 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) { remove: function(removeData) {