Permalink
Browse files

fixes #588, add JS to handle show/hide parameters

  • Loading branch information...
1 parent 222cd8c commit 497e6ec54f0176a8c8dd9ddf591b006efce7ef09 @plegall plegall committed Dec 22, 2016
Showing with 9 additions and 1 deletion.
  1. +9 −1 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 @@
</li>
</ul>
- <ul id="comments_param_warp"{if not ($comments.activate_comments)} style="display:none;"{/if}>
+ <ul id="comments_param_container">
<li>
<label class="font-checkbox">
<span class="icon-check"></span>

0 comments on commit 497e6ec

Please sign in to comment.