From: Mitchell Livingston Date: Wed, 24 Aug 2011 11:49:36 +0000 (+0000) Subject: (trunk web) fix queue reordering X-Git-Tag: 2.40b1~185 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=71750426ae116e747a71a6e68fcb0bd80f0394f4;p=transmission (trunk web) fix queue reordering --- diff --git a/web/javascript/transmission.js b/web/javascript/transmission.js index cc1f53f23..e9f5a5fb1 100644 --- a/web/javascript/transmission.js +++ b/web/javascript/transmission.js @@ -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);}); },