(clutch) fix error with setting the incoming port via clutch preferences. reported by lolek in irc

This commit is contained in:
Charles Kerr
2008-07-16 20:06:28 +00:00
parent 339fb746ff
commit af626c9e0b
3 changed files with 3 additions and 5 deletions

View File

@@ -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

View File

@@ -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" );