From 497e6ec54f0176a8c8dd9ddf591b006efce7ef09 Mon Sep 17 00:00:00 2001 From: plegall Date: Thu, 22 Dec 2016 14:38:13 +0100 Subject: [PATCH] fixes #588, add JS to handle show/hide parameters --- .../themes/default/template/configuration_comments.tpl | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/admin/themes/default/template/configuration_comments.tpl b/admin/themes/default/template/configuration_comments.tpl index db227a28c..2417e0ee7 100644 --- a/admin/themes/default/template/configuration_comments.tpl +++ b/admin/themes/default/template/configuration_comments.tpl @@ -19,6 +19,14 @@ }); })(target); }; + + function check_activate_comments() { + jQuery("#comments_param_container").toggle(jQuery("input[name=activate_comments]").is(":checked")); + } + check_activate_comments(); + jQuery("input[name=activate_comments]").on("change", function() { + check_activate_comments(); + }); }()); {/footer_script} @@ -39,7 +47,7 @@ -