Somehow the password must be handled specially (also because of the hashing) which causes problems at the moment.
35 lines
857 B
JavaScript
35 lines
857 B
JavaScript
|
|
jQuery(function($){
|
|
function update_show_overrides()
|
|
{
|
|
// One of the checkboxes was clicked. Verify that all input fields are set up correctly.
|
|
|
|
if(! $('#check-mail').prop('checked'))
|
|
$('#mail').addClass('clubs-invisible');
|
|
else
|
|
$('#mail').removeClass('clubs-invisible');
|
|
|
|
if(! $('#check-phone').prop('checked'))
|
|
$('#phone').addClass('clubs-invisible');
|
|
else
|
|
$('#phone').removeClass('clubs-invisible');
|
|
|
|
if(! $('#check-mobile').prop('checked'))
|
|
$('#mobile').addClass('clubs-invisible');
|
|
else
|
|
$('#mobile').removeClass('clubs-invisible');
|
|
|
|
if(! $('#check-address').prop('checked'))
|
|
$('#address').addClass('clubs-invisible');
|
|
else
|
|
$('#address').removeClass('clubs-invisible');
|
|
|
|
}
|
|
|
|
$(document).ready(function(){
|
|
update_show_overrides();
|
|
});
|
|
|
|
$(".check-dedicated").click(update_show_overrides);
|
|
});
|