Changeset 7299
- Timestamp:
- Dec 6, 2008, 4:56:26 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/web/javascript/transmission.js
r6990 r7299 530 530 o[RPC._DownSpeedLimit] = parseInt( $('#prefs_form #download_rate')[0].value ); 531 531 o[RPC._DownloadDir] = $('#prefs_form #download_location')[0].value; 532 o[RPC._UpSpeedLimited] = $('#prefs_form #limit_upload')[0].checked ;533 o[RPC._DownSpeedLimited] = $('#prefs_form #limit_download')[0].checked ;532 o[RPC._UpSpeedLimited] = $('#prefs_form #limit_upload')[0].checked ? 1 : 0; 533 o[RPC._DownSpeedLimited] = $('#prefs_form #limit_download')[0].checked ? 1 : 0; 534 534 o[RPC._Encryption] = $('#prefs_form #encryption')[0].checked 535 535 ? RPC._EncryptionRequired … … 678 678 $('div.port input')[0].value = prefs['port']; 679 679 $('div.auto_start input')[0].checked = prefs[Prefs._AutoStart]; 680 $('input#limit_download')[0].checked = down_limited ;680 $('input#limit_download')[0].checked = down_limited == 1; 681 681 $('input#download_rate')[0].value = down_limit; 682 $('input#limit_upload')[0].checked = up_limited ;682 $('input#limit_upload')[0].checked = up_limited == 1; 683 683 $('input#upload_rate')[0].value = up_limit; 684 684 $('input#refresh_rate')[0].value = prefs[Prefs._RefreshRate];
Note: See TracChangeset
for help on using the changeset viewer.