Module: check_mk
Branch: master
Commit: 88e886a459141cabb4039bcb52e08f6213c0bbff
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=88e886a459141c…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Oct 12 15:32:04 2016 +0200
Fixed visibility of fixed rows on filtering table
---
web/htdocs/table.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/web/htdocs/table.py b/web/htdocs/table.py
index 6c3b461..03645ec 100644
--- a/web/htdocs/table.py
+++ b/web/htdocs/table.py
@@ -194,9 +194,11 @@ def end():
filtered_rows = []
for row, css, state, fixed in rows:
if state == "header" or fixed:
+ filtered_rows.append((row, css, state, fixed))
continue # skip filtering of headers or fixed rows
+
for cell_content, css_classes, colspan in row:
- if fixed or search_term in cell_content.lower():
+ if search_term in cell_content.lower():
filtered_rows.append((row, css, state, fixed))
break # skip other cells when matched
rows = filtered_rows