Module: check_mk
Branch: master
Commit: c5f48388f6df94f04ecf430d5c16d1ce766536a1
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=c5f48388f6df94…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri Apr 17 16:36:01 2015 +0200
Fixed js error in mobile GUI
---
web/htdocs/mobile.py | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/web/htdocs/mobile.py b/web/htdocs/mobile.py
index 751d798..00e205b 100644
--- a/web/htdocs/mobile.py
+++ b/web/htdocs/mobile.py
@@ -58,13 +58,12 @@ def mobile_html_head(title, ready_code=""):
<script type='text/javascript'>
$(document).ready(function() { %s });
$(document).ready(function() {
- $("a").click(function (event) {
- event.preventDefault();
- window.location = $(this).attr("href");
+ $("a").click(function (event) {
+ event.preventDefault();
+ window.location = $(this).attr("href");
+ });
});
-
</script>
-
</head>
<body class=mobile>
""" % (title, ready_code))