Author: damoxc

Revision: 5126

Log:
        fix changing the limits on via the statusbar menus

Diff:
Modified: trunk/deluge/ui/web/js/Deluge.Menus.js
===================================================================
--- trunk/deluge/ui/web/js/Deluge.Menus.js      2009-04-21 21:46:20 UTC (rev 
5125)
+++ trunk/deluge/ui/web/js/Deluge.Menus.js      2009-04-21 21:59:15 UTC (rev 
5126)
@@ -24,16 +24,16 @@
 Deluge.Menus = {
        onTorrentAction: function(item, e) {
                var selection = Deluge.Torrents.getSelections();
-               var ids = new Array();
-               $each(selection, function(record) {
-                       ids.include(record.id);
+               var ids = [];
+               Ext.each(selection, function(record) {
+                       ids.push(record.id);
                });
                
                switch (item.id) {
                        case 'pause':
                        case 'resume':
                                Deluge.Client.core[item.id + '_torrent'](ids, {
-                                       onSuccess: function() {
+                                       success: function() {
                                                Deluge.UI.update();
                                        }
                                });
@@ -43,14 +43,14 @@
                        case 'down':
                        case 'bottom':
                                Deluge.Client.core['queue_' + item.id](ids, {
-                                       onSuccess: function() {
+                                       success: function() {
                                                Deluge.UI.update();
                                        }
                                });
                                break;
                        case 'update':
                                Deluge.Client.core.force_reannounce(ids, {
-                                       onSuccess: function() {
+                                       success: function() {
                                                Deluge.UI.update();
                                        }
                                });
@@ -58,14 +58,14 @@
                        case 'remove':
                                Deluge.Events.fire('torrentRemoved', ids);
                                Deluge.Client.core.remove_torrent(ids, null, {
-                                       onSuccess: function() {
+                                       success: function() {
                                                Deluge.UI.update();
                                        }
                                });
                                break;
                        case 'recheck':
                                Deluge.Client.core.force_recheck(ids, {
-                                       onSuccess: function() { 
+                                       success: function() {   
                                                Deluge.UI.update();
                                        }
                                });
@@ -410,7 +410,7 @@
                config = {}
                config[item.group] = item.id
                Deluge.Client.core.set_config(config, {
-                       onSuccess: function() {
+                       success: function() {
                                Deluge.UI.update();
                        }
                });



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