(trunk web) rpc returns true and false for this, no need for 1 and 0. reported by mwarning
This commit is contained in:
parent
3e63c1ddb8
commit
5304a133ac
|
@ -610,8 +610,8 @@ Transmission.prototype =
|
||||||
o[RPC._UpSpeedLimit] = parseInt( $('#prefs_form #upload_rate')[0].value );
|
o[RPC._UpSpeedLimit] = parseInt( $('#prefs_form #upload_rate')[0].value );
|
||||||
o[RPC._DownSpeedLimit] = parseInt( $('#prefs_form #download_rate')[0].value );
|
o[RPC._DownSpeedLimit] = parseInt( $('#prefs_form #download_rate')[0].value );
|
||||||
o[RPC._DownloadDir] = $('#prefs_form #download_location')[0].value;
|
o[RPC._DownloadDir] = $('#prefs_form #download_location')[0].value;
|
||||||
o[RPC._UpSpeedLimited] = $('#prefs_form #limit_upload')[0].checked ? 1 : 0;
|
o[RPC._UpSpeedLimited] = $('#prefs_form #limit_upload')[0].checked;
|
||||||
o[RPC._DownSpeedLimited] = $('#prefs_form #limit_download')[0].checked ? 1 : 0;
|
o[RPC._DownSpeedLimited] = $('#prefs_form #limit_download')[0].checked;
|
||||||
o[RPC._Encryption] = $('#prefs_form #encryption')[0].checked
|
o[RPC._Encryption] = $('#prefs_form #encryption')[0].checked
|
||||||
? RPC._EncryptionRequired
|
? RPC._EncryptionRequired
|
||||||
: RPC._EncryptionPreferred;
|
: RPC._EncryptionPreferred;
|
||||||
|
@ -778,9 +778,9 @@ Transmission.prototype =
|
||||||
$('div.download_location input')[0].value = prefs[RPC._DownloadDir];
|
$('div.download_location input')[0].value = prefs[RPC._DownloadDir];
|
||||||
$('div.port input')[0].value = prefs[RPC._PeerPort];
|
$('div.port input')[0].value = prefs[RPC._PeerPort];
|
||||||
$('div.auto_start input')[0].checked = prefs[Prefs._AutoStart];
|
$('div.auto_start input')[0].checked = prefs[Prefs._AutoStart];
|
||||||
$('input#limit_download')[0].checked = down_limited == 1;
|
$('input#limit_download')[0].checked = down_limited;
|
||||||
$('input#download_rate')[0].value = down_limit;
|
$('input#download_rate')[0].value = down_limit;
|
||||||
$('input#limit_upload')[0].checked = up_limited == 1;
|
$('input#limit_upload')[0].checked = up_limited;
|
||||||
$('input#upload_rate')[0].value = up_limit;
|
$('input#upload_rate')[0].value = up_limit;
|
||||||
$('input#refresh_rate')[0].value = prefs[Prefs._RefreshRate];
|
$('input#refresh_rate')[0].value = prefs[Prefs._RefreshRate];
|
||||||
$('div.encryption input')[0].checked = prefs[RPC._Encryption] == RPC._EncryptionRequired;
|
$('div.encryption input')[0].checked = prefs[RPC._Encryption] == RPC._EncryptionRequired;
|
||||||
|
|
Loading…
Reference in New Issue