From 8e25506673706ea8b2deeb846e7ff9e8f846183b Mon Sep 17 00:00:00 2001 From: rvelices Date: Tue, 23 Nov 2010 13:50:41 +0000 Subject: small javascript and css simplification git-svn-id: http://piwigo.org/svn/trunk@7852 68402e56-0260-453c-a942-63ccdbb3a9ee --- admin/themes/default/template/check_integrity.tpl | 30 ++++++++++++++++++++-- .../default/template/notification_by_mail.tpl | 21 +++++++++++++-- 2 files changed, 47 insertions(+), 4 deletions(-) (limited to 'admin/themes/default/template') diff --git a/admin/themes/default/template/check_integrity.tpl b/admin/themes/default/template/check_integrity.tpl index 7cf566123..c935e883c 100644 --- a/admin/themes/default/template/check_integrity.tpl +++ b/admin/themes/default/template/check_integrity.tpl @@ -54,9 +54,35 @@

+ {literal} + + {/literal} {if $c13y_show_submit_ignore} - {'Check all'|@translate} - / {'Uncheck all'|@translate} + {'Check all'|@translate} + / {'Uncheck all'|@translate} {/if} {if isset($c13y_do_check)} / +jQuery(document).ready(function(){ + + jQuery("#checkAllLink").click(function () { + jQuery("#notification_by_mail input[type=checkbox]").attr('checked', true); + return false; + }); + + jQuery("#uncheckAllLink").click(function () { + jQuery("#notification_by_mail input[type=checkbox]").attr('checked', false); + return false; + }); + +}); + +{/literal}

{'Send mail to users'|@translate} {$TABSHEET_TITLE}

@@ -97,8 +114,8 @@ {/foreach}

- {'Check all'|@translate} - / {'Uncheck all'|@translate} + {'Check all'|@translate} + / {'Uncheck all'|@translate}

-- cgit v1.2.3