summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-01-18 21:23:57 +0100
committerDan McGee <dan@archlinux.org>2011-01-18 21:23:57 +0100
commitecb24ab66a9d0a03ad021d23d4fa543f8163ef3e (patch)
tree65718ac22a96fd470d2ff3dd91519f9ceb576fc4
parent487daf1c72f86a064b659f68d9f7722706997ab2 (diff)
downloadarchweb-ecb24ab66a9d0a03ad021d23d4fa543f8163ef3e.tar.gz
archweb-ecb24ab66a9d0a03ad021d23d4fa543f8163ef3e.tar.xz
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>
-rw-r--r--media/archweb.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/media/archweb.js b/media/archweb.js
index b735187..330eeff 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;
}