Small JS clarification for finding table cell

Although it happened to be the parent element in this case, we are
really just looking for the containing cell. Change the call to closest
so we are future-proofed.

Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
Dan McGee 2011-01-18 14:23:57 -06:00
parent 487daf1c72
commit ecb24ab66a

View File

@ -150,7 +150,7 @@ function todolist_flag() {
'incomplete').removeClass('complete');
}
/* let tablesorter know the cell value has changed */
$('.results').trigger('updateCell', $(link).parent('td'));
$('.results').trigger('updateCell', $(link).closest('td'));
});
return false;
}