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