aboutsummaryrefslogtreecommitdiffstats
path: root/admin/themes/default/template/comments.tpl
diff options
context:
space:
mode:
authorpatdenice <patdenice@piwigo.org>2011-03-09 14:22:48 +0000
committerpatdenice <patdenice@piwigo.org>2011-03-09 14:22:48 +0000
commit8b64b57a27139a671800c6768133be0a8bb6d35f (patch)
tree238df6041c9c5ab9edd93d2465d9fbf3b03598d7 /admin/themes/default/template/comments.tpl
parent0552013a5765ffa46aabf93068eeb2109c2cb9e4 (diff)
feature:2114
Simplify all admin templates. git-svn-id: http://piwigo.org/svn/trunk@9586 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin/themes/default/template/comments.tpl')
-rw-r--r--admin/themes/default/template/comments.tpl28
1 files changed, 13 insertions, 15 deletions
diff --git a/admin/themes/default/template/comments.tpl b/admin/themes/default/template/comments.tpl
index 952d3f1dd..86d02dc49 100644
--- a/admin/themes/default/template/comments.tpl
+++ b/admin/themes/default/template/comments.tpl
@@ -1,33 +1,31 @@
-{literal}
-<script type="text/javascript">
-$(document).ready(function(){
- $(".checkComment").click(function(event) {
+{footer_script}{literal}
+jQuery(document).ready(function(){
+ jQuery(".checkComment").click(function(event) {
if (event.target.type !== 'checkbox') {
- var checkbox = $(this).children("input[type=checkbox]");
- $(checkbox).attr('checked', !$(checkbox).is(':checked'));
+ var checkbox = jQuery(this).children("input[type=checkbox]");
+ jQuery(checkbox).attr('checked', !jQuery(checkbox).is(':checked'));
}
});
- $("#commentSelectAll").click(function () {
- $(".checkComment input[type=checkbox]").attr('checked', true);
+ jQuery("#commentSelectAll").click(function () {
+ jQuery(".checkComment input[type=checkbox]").attr('checked', true);
return false;
});
- $("#commentSelectNone").click(function () {
- $(".checkComment input[type=checkbox]").attr('checked', false);
+ jQuery("#commentSelectNone").click(function () {
+ jQuery(".checkComment input[type=checkbox]").attr('checked', false);
return false;
});
- $("#commentSelectInvert").click(function () {
- $(".checkComment input[type=checkbox]").each(function() {
- $(this).attr('checked', !$(this).is(':checked'));
+ jQuery("#commentSelectInvert").click(function () {
+ jQuery(".checkComment input[type=checkbox]").each(function() {
+ jQuery(this).attr('checked', !$(this).is(':checked'));
});
return false;
});
});
-</script>
-{/literal}
+{/literal}{/footer_script}
<div class="titrePage">
<h2>{'Waiting'|@translate} {$TABSHEET_TITLE}</h2>