summaryrefslogtreecommitdiff
path: root/media
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-01-18 14:23:57 -0600
committerDan McGee <dan@archlinux.org>2011-01-18 14:23:57 -0600
commitecb24ab66a9d0a03ad021d23d4fa543f8163ef3e (patch)
tree65718ac22a96fd470d2ff3dd91519f9ceb576fc4 /media
parent487daf1c72f86a064b659f68d9f7722706997ab2 (diff)
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>
Diffstat (limited to 'media')
-rw-r--r--media/archweb.js2
1 files changed, 1 insertions, 1 deletions
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;
}