Changeset 5569


Ignore:
Timestamp:
04/02/10 11:50:45 (10 years ago)
Author:
plg
Message:

bug 1564 fixed: treat the checkbox as an exception when clicking on the
leading cell of the row.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/themes/default/template/comments.tpl

    r5381 r5569  
    22<script> 
    33$(document).ready(function(){ 
    4   $(".checkComment").click(function () { 
    5     var checkbox = $(this).children("input[type=checkbox]"); 
    6     $(checkbox).attr('checked', !$(checkbox).is(':checked')); 
     4  $(".checkComment").click(function(event) { 
     5    if (event.target.type !== 'checkbox') { 
     6      var checkbox = $(this).children("input[type=checkbox]"); 
     7      $(checkbox).attr('checked', !$(checkbox).is(':checked')); 
     8    } 
    79  }); 
    810 
Note: See TracChangeset for help on using the changeset viewer.