aboutsummaryrefslogtreecommitdiffstats
path: root/admin/themes/default/template/comments.tpl
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2013-05-21 21:02:17 +0000
committerrvelices <rv-github@modusoptimus.com>2013-05-21 21:02:17 +0000
commit7b36df8f75e6037e626070bb2813ea6fe0a3d35c (patch)
tree211ba5785d6a62366a6fcebad40a12213f39d475 /admin/themes/default/template/comments.tpl
parentbac2631cb41b0aeb804803a5e9ce9ffe60d5d868 (diff)
compatibility with jquery 1.9
git-svn-id: http://piwigo.org/svn/trunk@22812 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin/themes/default/template/comments.tpl')
-rw-r--r--admin/themes/default/template/comments.tpl16
1 files changed, 7 insertions, 9 deletions
diff --git a/admin/themes/default/template/comments.tpl b/admin/themes/default/template/comments.tpl
index 67a392db7..82fe169db 100644
--- a/admin/themes/default/template/comments.tpl
+++ b/admin/themes/default/template/comments.tpl
@@ -15,26 +15,26 @@ jQuery(document).ready(function(){
jQuery(".checkComment").click(function(event) {
var checkbox = jQuery(this).children("input[type=checkbox]");
if (event.target.type !== 'checkbox') {
- jQuery(checkbox).attr('checked', !jQuery(checkbox).is(':checked'));
+ jQuery(checkbox).prop('checked', !jQuery(checkbox).prop('checked'));
}
highlighComments();
});
jQuery("#commentSelectAll").click(function () {
- jQuery(".checkComment input[type=checkbox]").attr('checked', true);
+ jQuery(".checkComment input[type=checkbox]").prop('checked', true);
highlighComments();
return false;
});
jQuery("#commentSelectNone").click(function () {
- jQuery(".checkComment input[type=checkbox]").attr('checked', false);
+ jQuery(".checkComment input[type=checkbox]").prop('checked', false);
highlighComments();
return false;
});
jQuery("#commentSelectInvert").click(function () {
jQuery(".checkComment input[type=checkbox]").each(function() {
- jQuery(this).attr('checked', !$(this).is(':checked'));
+ jQuery(this).prop('checked', !$(this).prop('checked'));
});
highlighComments();
return false;
@@ -43,9 +43,7 @@ jQuery(document).ready(function(){
});
{/literal}{/footer_script}
-<div class="titrePage">
- <h2>{'Pending Comments'|@translate} {$TABSHEET_TITLE}</h2>
-</div>
+<h2>{'Pending Comments'|@translate} {$TABSHEET_TITLE}</h2>
{if !empty($comments) }
<form method="post" action="{$F_ACTION}" id="pendingComments">
@@ -75,8 +73,8 @@ jQuery(document).ready(function(){
</p>
<p class="bottomButtons">
- <input class="submit" type="submit" name="validate" value="{'Validate'|@translate}">
- <input class="submit" type="submit" name="reject" value="{'Reject'|@translate}">
+ <input type="submit" name="validate" value="{'Validate'|@translate}">
+ <input type="submit" name="reject" value="{'Reject'|@translate}">
</p>
</form>