aboutsummaryrefslogtreecommitdiffstats
path: root/admin/themes/default/template
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2010-04-02 09:50:45 +0000
committerplegall <plg@piwigo.org>2010-04-02 09:50:45 +0000
commitb4cee39043cf287f51c25d4a42d18357045274cd (patch)
tree9ce3179718cc9bc1ed8eb5a607ec9047dfb41209 /admin/themes/default/template
parentb6e82a7ac9786c3ec42512a0c305754318703156 (diff)
bug 1564 fixed: treat the checkbox as an exception when clicking on the
leading cell of the row. git-svn-id: http://piwigo.org/svn/trunk@5569 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--admin/themes/default/template/comments.tpl8
1 files changed, 5 insertions, 3 deletions
diff --git a/admin/themes/default/template/comments.tpl b/admin/themes/default/template/comments.tpl
index 6f3f37c95..ae6e1b569 100644
--- a/admin/themes/default/template/comments.tpl
+++ b/admin/themes/default/template/comments.tpl
@@ -1,9 +1,11 @@
{literal}
<script>
$(document).ready(function(){
- $(".checkComment").click(function () {
- var checkbox = $(this).children("input[type=checkbox]");
- $(checkbox).attr('checked', !$(checkbox).is(':checked'));
+ $(".checkComment").click(function(event) {
+ if (event.target.type !== 'checkbox') {
+ var checkbox = $(this).children("input[type=checkbox]");
+ $(checkbox).attr('checked', !$(checkbox).is(':checked'));
+ }
});
$("#commentSelectAll").click(function () {