mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 04:18:39 +00:00
(clutch) fix error with setting the incoming port via clutch preferences. reported by lolek in irc
This commit is contained in:
@@ -524,10 +524,10 @@ Transmission.prototype =
|
||||
|
||||
// pass the new prefs upstream to the RPC server
|
||||
var o = { };
|
||||
o[RPC._PeerPort] = parseInt( $('#prefs_form #port')[0].value );
|
||||
o[RPC._UpSpeedLimit] = parseInt( $('#prefs_form #upload_rate')[0].value );
|
||||
o[RPC._DownSpeedLimit] = parseInt( $('#prefs_form #download_rate')[0].value );
|
||||
o[RPC._DownloadDir] = $('#prefs_form #download_location')[0].value;
|
||||
o[RPC._PeerPort] = $('#prefs_form #port')[0].value;
|
||||
o[RPC._UpSpeedLimited] = $('#prefs_form #limit_upload')[0].checked;
|
||||
o[RPC._DownSpeedLimited] = $('#prefs_form #limit_download')[0].checked;
|
||||
o[RPC._Encryption] = $('#prefs_form #encryption')[0].checked
|
||||
|
||||
@@ -91,7 +91,7 @@ TransmissionRemote.prototype =
|
||||
var o = { };
|
||||
o.method = 'session-get';
|
||||
this.sendRequest( RPC._Root, $.toJSON(o), function(data) {
|
||||
var o = data.arguments.session;
|
||||
var o = data.arguments;
|
||||
Prefs.getClutchPrefs( o );
|
||||
tr.updatePrefs( o );
|
||||
}, "json" );
|
||||
|
||||
Reference in New Issue
Block a user