mirror of
https://github.com/transmission/transmission
synced 2024-12-23 16:24:02 +00:00
(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
1 changed files with 5 additions and 5 deletions
|
@ -610,8 +610,8 @@ Transmission.prototype =
|
|||
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._UpSpeedLimited] = $('#prefs_form #limit_upload')[0].checked ? 1 : 0;
|
||||
o[RPC._DownSpeedLimited] = $('#prefs_form #limit_download')[0].checked ? 1 : 0;
|
||||
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
|
||||
? RPC._EncryptionRequired
|
||||
: RPC._EncryptionPreferred;
|
||||
|
@ -774,13 +774,13 @@ Transmission.prototype =
|
|||
var down_limited = prefs[RPC._DownSpeedLimited];
|
||||
var up_limit = prefs[RPC._UpSpeedLimit];
|
||||
var up_limited = prefs[RPC._UpSpeedLimited];
|
||||
|
||||
|
||||
$('div.download_location input')[0].value = prefs[RPC._DownloadDir];
|
||||
$('div.port input')[0].value = prefs[RPC._PeerPort];
|
||||
$('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#limit_upload')[0].checked = up_limited == 1;
|
||||
$('input#limit_upload')[0].checked = up_limited;
|
||||
$('input#upload_rate')[0].value = up_limit;
|
||||
$('input#refresh_rate')[0].value = prefs[Prefs._RefreshRate];
|
||||
$('div.encryption input')[0].checked = prefs[RPC._Encryption] == RPC._EncryptionRequired;
|
||||
|
|
Loading…
Reference in a new issue