From b56c103188ab4fb76fdcc42c4fbc3810d384b5aa Mon Sep 17 00:00:00 2001 From: mistic100 Date: Mon, 15 Sep 2014 15:18:17 +0000 Subject: use fontello for every checkbox on config screens + split configuration.tpl file git-svn-id: http://piwigo.org/svn/trunk@29539 68402e56-0260-453c-a942-63ccdbb3a9ee --- .../default/template/configuration_comments.tpl | 151 +++++++++++++++++++++ 1 file changed, 151 insertions(+) create mode 100644 admin/themes/default/template/configuration_comments.tpl (limited to 'admin/themes/default/template/configuration_comments.tpl') diff --git a/admin/themes/default/template/configuration_comments.tpl b/admin/themes/default/template/configuration_comments.tpl new file mode 100644 index 000000000..db227a28c --- /dev/null +++ b/admin/themes/default/template/configuration_comments.tpl @@ -0,0 +1,151 @@ +{combine_script id='common' load='footer' path='admin/themes/default/js/common.js'} + +{footer_script} +(function(){ + var targets = { + 'input[name="comments_validation"]' : '#email_admin_on_comment_validation', + 'input[name="user_can_edit_comment"]' : '#email_admin_on_comment_edition', + 'input[name="user_can_delete_comment"]' : '#email_admin_on_comment_deletion' + }; + + for (selector in targets) { + var target = targets[selector]; + + jQuery(target).toggle(jQuery(selector).is(':checked')); + + (function(target){ + jQuery(selector).on('change', function() { + jQuery(target).toggle($(this).is(':checked')); + }); + })(target); + }; +}()); +{/footer_script} + +

{'Piwigo configuration'|translate} {$TABSHEET_TITLE}

+ +
+ +
+ +
+
    +
  • + +
  • +
+ + +
+ +
+ +

+ +

+ +
\ No newline at end of file -- cgit v1.2.3