(trunk web) #4993 "Add Set Location on WebUI" -- use luizpaulo's patch to implement this

This commit is contained in:
Jordan Lee
2012-08-18 15:46:22 +00:00
parent 4f4529ae09
commit b150f1158e
7 changed files with 82 additions and 4 deletions

View File

@@ -157,6 +157,13 @@ TransmissionRemote.prototype =
stopTorrents: function(torrent_ids, callback, context) {
this.sendTorrentActionRequests('torrent-stop', torrent_ids, callback, context);
},
moveTorrents: function(torrent_ids, new_location, callback, context) {
var remote = this;
this.sendTorrentSetRequests( 'torrent-set-location', torrent_ids,
{"move": true, "location": new_location}, callback, context);
},
removeTorrents: function(torrent_ids, callback, context) {
this.sendTorrentActionRequests('torrent-remove', torrent_ids, callback, context);
},