Changeset 12720


Ignore:
Timestamp:
Aug 24, 2011, 11:49:36 AM (10 years ago)
Author:
livings124
Message:

(trunk web) fix queue reordering

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/web/javascript/transmission.js

    r12719 r12720  
    18671867        moveTop: function() {
    18681868                var tr = this;
    1869                 var ids = this.getSelectedTorrentIds();
    1870                 this.remote.moveTorrentsToTop(torrent_ids, function() { tr.refreshTorrents(ids);});
     1869                var torrent_ids = this.getSelectedTorrentIds();
     1870                this.remote.moveTorrentsToTop(torrent_ids, function() { tr.refreshTorrents(torrent_ids);});
    18711871        },
    18721872        moveUp: function() {
    18731873                var tr = this;
    1874                 var ids = this.getSelectedTorrentIds();
    1875                 this.remote.moveTorrentsUp(torrent_ids, function() { tr.refreshTorrents(ids);});
     1874                var torrent_ids = this.getSelectedTorrentIds();
     1875                this.remote.moveTorrentsUp(torrent_ids, function() { tr.refreshTorrents(torrent_ids);});
    18761876        },
    18771877        moveDown: function() {
    18781878                var tr = this;
    1879                 var ids = this.getSelectedTorrentIds();
    1880                 this.remote.moveTorrentsDown(torrent_ids, function() { tr.refreshTorrents(ids);});
     1879                var torrent_ids = this.getSelectedTorrentIds();
     1880                this.remote.moveTorrentsDown(torrent_ids, function() { tr.refreshTorrents(torrent_ids);});
    18811881        },
    18821882        moveBottom: function() {
    18831883                var tr = this;
    1884                 var ids = this.getSelectedTorrentIds();
    1885                 this.remote.moveTorrentsToBottom(torrent_ids, function() { tr.refreshTorrents(ids);});
     1884                var torrent_ids = this.getSelectedTorrentIds();
     1885                this.remote.moveTorrentsToBottom(torrent_ids, function() { tr.refreshTorrents(torrent_ids);});
    18861886        },
    18871887
Note: See TracChangeset for help on using the changeset viewer.