Permalink
Browse files

make parent lookup more robust

  • Loading branch information...
moritz committed Aug 15, 2011
1 parent 810341e commit 8183f187e27abce5bcb520d42432af45961e59c3
Showing with 2 additions and 2 deletions.
  1. +2 −2 cgi/summary.js
View
@@ -26,11 +26,11 @@ function save_summary_changes() {
}
function hide_non_summary() {
- $('.summary_checkbox:not(:checked)').parent().parent().hide();
+ $('.summary_checkbox:not(:checked)').parents('tr').hide();
$('#toggle_summary').html('<a href="javascript:show_all_rows()">show all lines</a>');
}
function show_all_rows() {
- $('.summary_checkbox').parent().parent().show();
+ $('.summary_checkbox').parents('tr').show();
$('#toggle_summary').html(summary_filter_link);
}

0 comments on commit 8183f18

Please sign in to comment.