mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 12:28:52 +00:00
(trunk, web) #5510 'add file renaming to transmission web interface' -- added with patch from mark ablov
This commit is contained in:
@@ -105,7 +105,16 @@ TransmissionRemote.prototype =
|
||||
var o = { method: 'port-test' };
|
||||
this.sendRequest(o, callback, context, async);
|
||||
},
|
||||
|
||||
|
||||
renameTorrent: function(torrentIds, oldpath, newname, callback, context) {
|
||||
var o = { method: 'torrent-rename-path',
|
||||
arguments: { 'ids': torrentIds,
|
||||
'path': oldpath,
|
||||
'name': newname }
|
||||
};
|
||||
this.sendRequest(o, callback, context);
|
||||
},
|
||||
|
||||
loadDaemonStats: function(callback, context, async) {
|
||||
var o = { method: 'session-stats' };
|
||||
this.sendRequest(o, callback, context, async);
|
||||
|
||||
Reference in New Issue
Block a user