Module: check_mk
Branch: master
Commit: fc3a2e35bd18e0fe6fab42e0f13955af36c7f33f
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=fc3a2e35bd18e0…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Fri Apr 20 13:17:10 2018 +0200
Update for WK5979 FIX Availability: Highlighting was still broken for timeranges with
service period gaps
Change-Id: Iaa5710ab972539997b9c444b567a1f5be3b86c8c
---
web/plugins/views/availability.py | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/web/plugins/views/availability.py b/web/plugins/views/availability.py
index 877f838..f4425b0 100644
--- a/web/plugins/views/availability.py
+++ b/web/plugins/views/availability.py
@@ -463,12 +463,14 @@ def render_timeline_bar(timeline_layout, style):
"style": "width: %.3f%%" % width,
"title": title,
"class": css,
- "id_": "timeline_%d" % row_nr,
}
- if style == "standalone" and row_nr is not None:
- td_attrs.update({"onmouseover": "timeline_hover(%d, 1);"
% row_nr,
- "onmouseout" : "timeline_hover(%d, 0);"
% row_nr, })
+ if row_nr is not None:
+ td_attrs.update({"id_": "timeline_%d" % row_nr})
+
+ if style == "standalone":
+ td_attrs.update({"onmouseover": "timeline_hover(%d,
1);" % row_nr,
+ "onmouseout" : "timeline_hover(%d,
0);" % row_nr, })
html.td('', **td_attrs)