feature:2549 fix javascript (hide/show didn't work correctly)

git-svn-id: http://piwigo.org/svn/trunk@12892 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
mistic100 2012-01-15 15:36:19 +00:00
parent 435ff5f9f2
commit 24eafada3e

View file

@ -253,12 +253,12 @@ jQuery(document).ready(function () {
</ul>
</fieldset>
{footer_script}{literal}
$(document).ready(function(){
$("#activate_comments").change(function(){
if ($(this).attr('checked')) {
$("#comments_param_warp").css('display', '');
jQuery(document).ready(function(){
jQuery("#activate_comments").change(function(){
if ($(this).is(':checked')) {
jQuery("#comments_param_warp").show();
} else {
$("#comments_param_warp").css('display', 'none');
jQuery("#comments_param_warp").hide();
}
});
});