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
This commit is contained in:
plegall 2010-04-02 09:50:45 +00:00
parent b6e82a7ac9
commit b4cee39043

View file

@ -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 () {