Do not mark rows when clicked on anchor

This commit is contained in:
Madhura Jayaratne
2011-03-15 00:59:16 +05:30
parent 49d95b5573
commit d2955a1f35

View File

@@ -594,7 +594,7 @@ $(document).ready(function() {
*/ */
$('tr.odd:not(.noclick), tr.even:not(.noclick)').live('click',function(e) { $('tr.odd:not(.noclick), tr.even:not(.noclick)').live('click',function(e) {
//do not trigger when clicked on anchor or inside input element (in inline editing mode) with exception of the first checkbox //do not trigger when clicked on anchor or inside input element (in inline editing mode) with exception of the first checkbox
if ($(e.target).parents('tr').find('td:nth(2)').hasClass('inline_edit_active')) { if ($(e.target).is('a, a *') || $(e.target).parents('tr').find('td:nth(2)').hasClass('inline_edit_active')) {
return; return;
} }
// XXX: FF fires two click events for <label> (label and checkbox), so we need to handle this differently // XXX: FF fires two click events for <label> (label and checkbox), so we need to handle this differently