mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 12:28:52 +00:00
#5944: Unify indentation style and strip trailing whitespaces across JS code, no functional changes (patch by xzcvczx + a lot more)
This commit is contained in:
@@ -108,10 +108,13 @@ TransmissionRemote.prototype =
|
||||
},
|
||||
|
||||
renameTorrent: function(torrentIds, oldpath, newname, callback, context) {
|
||||
var o = { method: 'torrent-rename-path',
|
||||
arguments: { 'ids': torrentIds,
|
||||
var o = {
|
||||
method: 'torrent-rename-path',
|
||||
arguments: {
|
||||
'ids': torrentIds,
|
||||
'path': oldpath,
|
||||
'name': newname }
|
||||
'name': newname
|
||||
}
|
||||
};
|
||||
this.sendRequest(o, callback, context);
|
||||
},
|
||||
@@ -124,7 +127,7 @@ TransmissionRemote.prototype =
|
||||
updateTorrents: function(torrentIds, fields, callback, context) {
|
||||
var o = {
|
||||
method: 'torrent-get',
|
||||
'arguments': {
|
||||
arguments: {
|
||||
'fields': fields
|
||||
}
|
||||
};
|
||||
|
||||
@@ -420,14 +420,13 @@ Torrent.compareByProgress = function(ta, tb)
|
||||
|
||||
return (a - b) || Torrent.compareByRatio(ta, tb);
|
||||
};
|
||||
|
||||
Torrent.compareBySize = function(ta, tb)
|
||||
{
|
||||
var a = ta.getTotalSize(),
|
||||
b = tb.getTotalSize();
|
||||
|
||||
return (a - b) || Torrent.compareByName(ta, tb);
|
||||
}
|
||||
};
|
||||
|
||||
Torrent.compareTorrents = function(a, b, sortMethod, sortDirection)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user