X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=sidebyside;f=WEB-INF%2Ftemplates%2Fprofile_edit.tpl;h=8c9cb8d58e45d344f2e5d86c003bd3e4f9071599;hb=5be07134435f222690aef4d8c3f807026cb894bb;hp=7f8cd2811913f9db4782890aaf5a9b2211e1c269;hpb=e11d527ca80a0bf7079ce8bc78bcc027b0096f7a;p=timetracker.git diff --git a/WEB-INF/templates/profile_edit.tpl b/WEB-INF/templates/profile_edit.tpl index 7f8cd281..8c9cb8d5 100644 --- a/WEB-INF/templates/profile_edit.tpl +++ b/WEB-INF/templates/profile_edit.tpl @@ -28,9 +28,15 @@ function handlePluginCheckboxes() { taxCheckbox.style.visibility = "hidden"; taxLabel.style.visibility = "hidden"; } + var configureLabel = document.getElementById("expenses_config"); + if (expensesCheckbox.checked) { + configureLabel.style.visibility = "visible"; + } else { + configureLabel.style.visibility = "hidden"; + } var customFieldsCheckbox = document.getElementById("custom_fields"); - var configureLabel = document.getElementById("cf_config"); + configureLabel = document.getElementById("cf_config"); if (customFieldsCheckbox.checked) { configureLabel.style.visibility = "visible"; } else { @@ -141,7 +147,7 @@ function handlePluginCheckboxes() {