aboutsummaryrefslogtreecommitdiffstats
path: root/admin/themes/default
diff options
context:
space:
mode:
authormistic100 <mistic@piwigo.org>2012-01-15 15:36:19 +0000
committermistic100 <mistic@piwigo.org>2012-01-15 15:36:19 +0000
commit24eafada3e6f0b8ee27a4088ed50c35e0cad15ed (patch)
tree5caaf5adfff3c2d1585d5323db3c48efe10b71f0 /admin/themes/default
parent435ff5f9f24efa9aa2d7b6fe377f5748d734fdcf (diff)
feature:2549 fix javascript (hide/show didn't work correctly)
git-svn-id: http://piwigo.org/svn/trunk@12892 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin/themes/default')
-rw-r--r--admin/themes/default/template/configuration.tpl10
1 files changed, 5 insertions, 5 deletions
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 () {
</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();
}
});
});