Skip to content

Commit

Permalink
feature:2549 fix javascript (hide/show didn't work correctly)
Browse files Browse the repository at this point in the history
git-svn-id: http://piwigo.org/svn/trunk@12892 68402e56-0260-453c-a942-63ccdbb3a9ee
  • Loading branch information
mistic100 committed Jan 15, 2012
1 parent 435ff5f commit 24eafad
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions admin/themes/default/template/configuration.tpl
Expand Up @@ -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();
}
});
});
Expand Down

0 comments on commit 24eafad

Please sign in to comment.