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:
parent
435ff5f9f2
commit
24eafada3e
1 changed files with 5 additions and 5 deletions
|
@ -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();
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue