Skip to content

Commit

Permalink
bug 1564 fixed: treat the checkbox as an exception when clicking on the
Browse files Browse the repository at this point in the history
leading cell of the row.

git-svn-id: http://piwigo.org/svn/trunk@5569 68402e56-0260-453c-a942-63ccdbb3a9ee
  • Loading branch information
plegall committed Apr 2, 2010
1 parent b6e82a7 commit b4cee39
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions 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 () {
Expand Down

0 comments on commit b4cee39

Please sign in to comment.