Module: deluge
Branch: master
Commit: 8bafc9f966cd9e80ee23268506b1a9e93c885969

Author: Damien Churchill <[email protected]>
Date:   Fri Apr  9 22:13:42 2010 +0100

tidy up and rename Remove.js to RemoveWindow.js

---

 .../js/deluge-all/{Remove.js => RemoveWindow.js}   |   36 ++++++++-----------
 1 files changed, 15 insertions(+), 21 deletions(-)

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 b50d647..237ef0b 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) {

-- 
You received this message because you are subscribed to the Google Groups 
"deluge-commit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/deluge-commit?hl=en.

Reply via email to