From 24eafada3e6f0b8ee27a4088ed50c35e0cad15ed Mon Sep 17 00:00:00 2001 From: mistic100 Date: Sun, 15 Jan 2012 15:36:19 +0000 Subject: feature:2549 fix javascript (hide/show didn't work correctly) git-svn-id: http://piwigo.org/svn/trunk@12892 68402e56-0260-453c-a942-63ccdbb3a9ee --- admin/themes/default/template/configuration.tpl | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'admin/themes') diff --git a/admin/themes/default/template/configuration.tpl b/admin/themes/default/template/configuration.tpl index bc64a14ff..521ad40c0 100644 --- a/admin/themes/default/template/configuration.tpl +++ b/admin/themes/default/template/configuration.tpl @@ -253,12 +253,12 @@ jQuery(document).ready(function () { {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(); } }); }); -- cgit v1.2.3