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 @@ -