Skip to content

Commit

Permalink
fixes #588, add JS to handle show/hide parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
plegall committed Dec 22, 2016
1 parent 222cd8c commit 497e6ec
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion admin/themes/default/template/configuration_comments.tpl
Expand Up @@ -19,6 +19,14 @@
}); });
})(target); })(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} {/footer_script}


Expand All @@ -39,7 +47,7 @@
</li> </li>
</ul> </ul>


<ul id="comments_param_warp"{if not ($comments.activate_comments)} style="display:none;"{/if}> <ul id="comments_param_container">
<li> <li>
<label class="font-checkbox"> <label class="font-checkbox">
<span class="icon-check"></span> <span class="icon-check"></span>
Expand Down

0 comments on commit 497e6ec

Please sign in to comment.