mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-05-06 21:42:44 +02:00
fixes #588, add JS to handle show/hide parameters
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user