From 6aeed0ef52969ccf9be174e8a732f98be0301796 Mon Sep 17 00:00:00 2001 From: Nik Okuntseff Date: Mon, 11 Mar 2019 17:41:19 +0000 Subject: [PATCH] Improved plugins.tpl to hide unnecessary label. --- WEB-INF/templates/footer.tpl | 2 +- WEB-INF/templates/plugins.tpl | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/WEB-INF/templates/footer.tpl b/WEB-INF/templates/footer.tpl index 90c62d2a..c2cdd155 100644 --- a/WEB-INF/templates/footer.tpl +++ b/WEB-INF/templates/footer.tpl @@ -12,7 +12,7 @@
- - + -- 2.20.1
 Anuko Time Tracker 1.18.58.4863 | Copyright © Anuko | +  Anuko Time Tracker 1.18.58.4864 | Copyright © Anuko | {$i18n.footer.credits} | {$i18n.footer.license} | {$i18n.footer.improve} diff --git a/WEB-INF/templates/plugins.tpl b/WEB-INF/templates/plugins.tpl index 34c6fc22..2a7b08d9 100644 --- a/WEB-INF/templates/plugins.tpl +++ b/WEB-INF/templates/plugins.tpl @@ -29,6 +29,7 @@ function handlePluginCheckboxes() { taxLabel.style.visibility = "hidden"; } var configureLabel = document.getElementById("expenses_config"); + var docLabel = null; if (expensesCheckbox.checked) { configureLabel.style.visibility = "visible"; } else { @@ -85,12 +86,13 @@ function handlePluginCheckboxes() { var templatesCheckbox = document.getElementById("templates"); configureLabel = document.getElementById("templates_config"); + docLabel = document.getElementById("templates_doc"); if (templatesCheckbox.checked){ configureLabel.style.display = ""; - //configureLabel.style.visibility = "visible"; + docLabel.style.display = "none"; } else { configureLabel.style.display = "none"; - //configureLabel.style.visibility = "hidden"; + docLabel.style.display = ""; } } @@ -154,7 +156,7 @@ function handlePluginCheckboxes() {
{$forms.pluginsForm.templates.control} {$i18n.label.configure} {$i18n.label.what_is_it} {$i18n.label.configure} {$i18n.label.what_is_it}