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:
parent
487daf1c72
commit
ecb24ab66a
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user