Module: check_mk
Branch: master
Commit: cca4d6507ad1333f755591ef185712c6dd4de5da
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=cca4d6507ad133…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Thu Apr 13 11:15:03 2017 +0200
a tag: Always set href attribute
Change-Id: I90746f112a826bf040a00917901df4b05841c30a
---
web/htdocs/htmllib.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/web/htdocs/htmllib.py b/web/htdocs/htmllib.py
index ce74e02..bacd115 100644
--- a/web/htdocs/htmllib.py
+++ b/web/htdocs/htmllib.py
@@ -2231,7 +2231,7 @@ class html(HTMLGenerator, Encoder, RequestHandler):
attrs["class_"] += [ "toggle_switch", "on" if
enabled else "off", ]
link_attrs = {
- "href" : attrs.pop("href", None),
+ "href" : attrs.pop("href",
"javascript:void(0)"),
"onclick" : attrs.pop("onclick", None),
}