Module: deluge
Branch: master
Commit: 7e5e28ea2b0ebcb828f29857741e22c347fa42b2

Author: Damien Churchill <[email protected]>
Date:   Fri Mar 19 08:48:13 2010 +0000

update to the new namespace format

---

 deluge/ui/web/js/deluge-all/Deluge.Remove.js |   18 +++++++++---------
 1 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/deluge/ui/web/js/deluge-all/Deluge.Remove.js 
b/deluge/ui/web/js/deluge-all/Deluge.Remove.js
index f584aab..c563e22 100644
--- a/deluge/ui/web/js/deluge-all/Deluge.Remove.js
+++ b/deluge/ui/web/js/deluge-all/Deluge.Remove.js
@@ -32,9 +32,9 @@ Copyright:
 */
 
 /**
- * @class Ext.deluge.RemoveWindow
+ * @class Deluge.RemoveWindow
  */
-Ext.deluge.RemoveWindow = Ext.extend(Ext.Window, {
+Deluge.RemoveWindow = Ext.extend(Ext.Window, {
 
        constructor: function(config) {
                config = Ext.apply({
@@ -48,11 +48,11 @@ Ext.deluge.RemoveWindow = Ext.extend(Ext.Window, {
                        plain: true,
                        iconCls: 'x-deluge-remove-window-icon'
                }, config);
-               Ext.deluge.RemoveWindow.superclass.constructor.call(this, 
config);
+               Deluge.RemoveWindow.superclass.constructor.call(this, config);
        },
        
        initComponent: function() {
-               Ext.deluge.RemoveWindow.superclass.initComponent.call(this);
+               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);
@@ -66,7 +66,7 @@ Ext.deluge.RemoveWindow = Ext.extend(Ext.Window, {
        
        remove: function(removeData) {
                Ext.each(this.torrentIds, function(torrentId) {
-                       Deluge.Client.core.remove_torrent(torrentId, 
removeData, {
+                       deluge.client.core.remove_torrent(torrentId, 
removeData, {
                                success: function() {
                                        this.onRemoved(torrentId);
                                },
@@ -78,7 +78,7 @@ Ext.deluge.RemoveWindow = Ext.extend(Ext.Window, {
        },
        
        show: function(ids) {
-               Ext.deluge.RemoveWindow.superclass.show.call(this);
+               Deluge.RemoveWindow.superclass.show.call(this);
                this.torrentIds = ids;
        },
        
@@ -96,10 +96,10 @@ Ext.deluge.RemoveWindow = Ext.extend(Ext.Window, {
        },
        
        onRemoved: function(torrentId) {
-               Deluge.Events.fire('torrentRemoved', torrentId);
+               deluge.events.fire('torrentRemoved', torrentId);
                this.hide();
-               Deluge.UI.update();
+               deluge.ui.update();
        }
 });
 
-Deluge.RemoveWindow = new Ext.deluge.RemoveWindow();
+deluge.removeWindow = new Deluge.RemoveWindow();

-- 
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