Christian Wolf cc9695b292 Added part of backend but problems with Joomla code compatibility found.
Somehow the password must be handled specially (also because of the hashing) which causes problems at the moment.
2019-04-12 15:56:00 +02:00

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