X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=WEB-INF%2Ftemplates%2Fprofile_edit.tpl;h=8c9cb8d58e45d344f2e5d86c003bd3e4f9071599;hb=c4e347fa168d586cbb3e02c646850d8a1749f7f1;hp=6a72508a4deceacbcc049466b762bdd0d29920a7;hpb=1ec29837741da5d4d24bbe9d11a780bc0de12f0b;p=timetracker.git diff --git a/WEB-INF/templates/profile_edit.tpl b/WEB-INF/templates/profile_edit.tpl index 6a72508a..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 { @@ -185,7 +191,7 @@ function handlePluginCheckboxes() { {$forms.profileForm.expenses.control} - {$forms.profileForm.tax_expenses.control} + {$forms.profileForm.tax_expenses.control} {$i18n.label.configure} {$forms.profileForm.notifications.control}