Module: check_mk
Branch: master
Commit: b08c4f1760471e6e8f6c879e77a5c0c4cf4a166a
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=b08c4f1760471e…
Author: Bastian Kuhn <bk(a)mathias-kettner.de>
Date: Mon Jan 23 11:00:19 2012 +0100
Mobile UI: Changed Link handling
---
web/htdocs/js/mobile.js | 5 +++++
web/htdocs/mobile.py | 2 +-
2 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/web/htdocs/js/mobile.js b/web/htdocs/js/mobile.js
index 377e5f6..c74c53e 100644
--- a/web/htdocs/js/mobile.js
+++ b/web/htdocs/js/mobile.js
@@ -33,3 +33,8 @@ $(document).ready(function() {
$("div.really").addClass("ui-shadow");
$("div.warning").addClass("ui-shadow");
});
+
+
+$(document).bind("mobileinit", function(){
+ $.mobile.ajaxEnabled = false;
+});
diff --git a/web/htdocs/mobile.py b/web/htdocs/mobile.py
index a5bdfd2..81f825d 100644
--- a/web/htdocs/mobile.py
+++ b/web/htdocs/mobile.py
@@ -55,8 +55,8 @@ def mobile_html_head(title, ready_code=""):
<link rel="stylesheet" type="text/css"
href="status.css">
<link rel="stylesheet" type="text/css"
href="mobile.css">
<script type='text/javascript'
src='jquery/jquery-1.6.4.min.js'></script>
- <script type='text/javascript'
src='jquery/jquery.mobile-1.0.min.js'></script>
<script type='text/javascript'
src='js/mobile.js'></script>
+ <script type='text/javascript'
src='jquery/jquery.mobile-1.0.min.js'></script>
<script type='text/javascript'
src='js/checkmk.js'></script>
<script type='text/javascript'>
$(document).ready(function() { %s });