mirror of
https://github.com/codex-storage/deluge.git
synced 2025-02-18 22:36:51 +00:00
tidy up and rename Remove.js to RemoveWindow.js
This commit is contained in:
parent
901d2d715c
commit
8bafc9f966
@ -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) {
|
|
||||||
config = Ext.apply({
|
|
||||||
title: _('Remove Torrent'),
|
title: _('Remove Torrent'),
|
||||||
layout: 'fit',
|
layout: 'fit',
|
||||||
width: 350,
|
width: 350,
|
||||||
height: 100,
|
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) {
|
Loading…
x
Reference in New Issue
Block a user