mirror of
https://github.com/sabnzbd/sabnzbd.git
synced 2026-01-24 15:30:31 -05:00
- No tabs - Two space indentation - Unix format Convert CherryPy to Unix format. Set .bzrtab to allow only the proper format.
23 lines
546 B
JavaScript
23 lines
546 B
JavaScript
function toggleWebPass()
|
|
{
|
|
var web
|
|
web = $('#enable_webpass').attr('checked')
|
|
if ($('#enable_webpass').attr('checked') == 1)
|
|
{
|
|
$('#web_user').attr("disabled","");
|
|
$('#web_pass').attr("disabled","");
|
|
|
|
} else {
|
|
$('#web_user').attr("disabled","disabled");
|
|
$('#web_pass').attr("value","");
|
|
$('#web_pass').attr("disabled","disabled");
|
|
$('#web_user').attr("value","");
|
|
}
|
|
};
|
|
|
|
$(document).ready(function() {
|
|
toggleWebPass();
|
|
$('#enable_webpass').bind('change click focus', function() {
|
|
toggleWebPass();
|
|
});
|
|
}); |