]> granicus.if.org Git - transmission/commitdiff
(trunk web) fix queue reordering
authorMitchell Livingston <livings124@transmissionbt.com>
Wed, 24 Aug 2011 11:49:36 +0000 (11:49 +0000)
committerMitchell Livingston <livings124@transmissionbt.com>
Wed, 24 Aug 2011 11:49:36 +0000 (11:49 +0000)
web/javascript/transmission.js

index cc1f53f23d704fa0a6cfafc6ae2c06676e622832..e9f5a5fb1a97cffee61761604503809af792fee0 100644 (file)
@@ -1866,23 +1866,23 @@ Transmission.prototype =
        // Queue
        moveTop: function() {
                var tr = this;
-               var ids = this.getSelectedTorrentIds();
-               this.remote.moveTorrentsToTop(torrent_ids, function() { tr.refreshTorrents(ids);});
+               var torrent_ids = this.getSelectedTorrentIds();
+               this.remote.moveTorrentsToTop(torrent_ids, function() { tr.refreshTorrents(torrent_ids);});
        },
        moveUp: function() {
                var tr = this;
-               var ids = this.getSelectedTorrentIds();
-               this.remote.moveTorrentsUp(torrent_ids, function() { tr.refreshTorrents(ids);});
+               var torrent_ids = this.getSelectedTorrentIds();
+               this.remote.moveTorrentsUp(torrent_ids, function() { tr.refreshTorrents(torrent_ids);});
        },
        moveDown: function() {
                var tr = this;
-               var ids = this.getSelectedTorrentIds();
-               this.remote.moveTorrentsDown(torrent_ids, function() { tr.refreshTorrents(ids);});
+               var torrent_ids = this.getSelectedTorrentIds();
+               this.remote.moveTorrentsDown(torrent_ids, function() { tr.refreshTorrents(torrent_ids);});
        },
        moveBottom: function() {
                var tr = this;
-               var ids = this.getSelectedTorrentIds();
-               this.remote.moveTorrentsToBottom(torrent_ids, function() { tr.refreshTorrents(ids);});
+               var torrent_ids = this.getSelectedTorrentIds();
+               this.remote.moveTorrentsToBottom(torrent_ids, function() { tr.refreshTorrents(torrent_ids);});
        },