mirror of https://gitlab.federez.net/re2o/re2o
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
624 B
17 lines
624 B
/** To enable the redirection has no meaning if the local email adress is not
|
|
* enabled. Thus this function enable the checkbox if needed and changes its
|
|
* state.
|
|
*/
|
|
function enable_redirection_chkbox() {
|
|
var redirect = document.getElementById('id_User-local_email_redirect');
|
|
var enabled = document.getElementById('id_User-local_email_enabled').checked;
|
|
if(!enabled)
|
|
{
|
|
redirect.checked = false;
|
|
}
|
|
redirect.disabled = !enabled;
|
|
}
|
|
|
|
var enabled_chkbox = document.getElementById('id_User-local_email_enabled');
|
|
enabled_chkbox.onclick = enable_redirection_chkbox;
|
|
enable_redirection_chkbox();
|
|
|