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

This commit is contained in:
plegall
2016-12-22 14:38:13 +01:00
parent 222cd8c5b6
commit 497e6ec54f

View File

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