Files
sabnzbd/interfaces/wizard/static/javascript/pagetwo.js
ShyPike 5a02a183f4 Normalize the skin files:
- No tabs
- Two space indentation
- Unix format
Convert CherryPy to Unix format.
Set .bzrtab to allow only the proper format.
2011-04-25 16:02:57 +02:00

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();
});
});