From c501688dbc98428635bdf569dc9c136e24fbd9a9 Mon Sep 17 00:00:00 2001 From: mistic100 Date: Sat, 14 Jan 2012 22:29:10 +0000 Subject: feature:2549 Allow to disable comments for everybody git-svn-id: http://piwigo.org/svn/trunk@12887 68402e56-0260-453c-a942-63ccdbb3a9ee --- admin/themes/default/template/configuration.tpl | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'admin/themes/default/template/configuration.tpl') diff --git a/admin/themes/default/template/configuration.tpl b/admin/themes/default/template/configuration.tpl index 008dfe4e0..bc64a14ff 100644 --- a/admin/themes/default/template/configuration.tpl +++ b/admin/themes/default/template/configuration.tpl @@ -181,6 +181,15 @@ jQuery(document).ready(function () {
+ +
+{footer_script}{literal} +$(document).ready(function(){ + $("#activate_comments").change(function(){ + if ($(this).attr('checked')) { + $("#comments_param_warp").css('display', ''); + } else { + $("#comments_param_warp").css('display', 'none'); + } + }); +}); +{/literal}{/footer_script} {/if} -- cgit v1.2.3