From ecb24ab66a9d0a03ad021d23d4fa543f8163ef3e Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Tue, 18 Jan 2011 14:23:57 -0600 Subject: 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 --- media/archweb.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/media/archweb.js b/media/archweb.js index b7351878..330eeff9 100644 --- a/media/archweb.js +++ b/media/archweb.js @@ -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; } -- cgit v1.2.3-55-g3dc8