You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Check to see if ajax can be used. This does a quick ajax request and blocks the page until its done
20
+
$.ajax({
21
+
url: '.',
22
+
async: false,
23
+
isLocal: true
24
+
}).error(function(){
25
+
// Ajax doesn't work so turn it off
26
+
$(document).on("mobileinit",function(){
27
+
$.mobile.ajaxEnabled=false;
28
+
29
+
varmessage=$('<div>',{
30
+
'class': "ui-footer ui-bar-e",
31
+
style: "overflow: auto; padding:10px 15px;",
32
+
'data-ajax-warning': true
33
+
});
34
+
35
+
message
36
+
.append("<h3>Note: Navigation may not work if viewed locally</h3>")
37
+
.append("<p>The AJAX-based navigation used throughout the jQuery Mobile docs may need to be viewed on a web server to work in certain browsers. If you see an error message when you click a link, try a different browser or <a href='https://github.com/jquery/jquery-mobile/wiki/Downloadable-Docs-Help'>view help</a>.</p>");
// Check to see if ajax can be used. This does a quick ajax request and blocks the page until its done
41
-
$.ajax({
42
-
url: '.',
43
-
async: false,
44
-
isLocal: true
45
-
}).error(function(){
46
-
// Ajax doesn't work so turn it off
47
-
$(document).on("mobileinit",function(){
48
-
$.mobile.ajaxEnabled=false;
49
-
50
-
varmessage=$('<div>',{
51
-
'class': "ui-footer ui-bar-e",
52
-
style: "overflow: auto; padding:10px 15px;",
53
-
'data-ajax-warning': true
54
-
});
55
-
56
-
message
57
-
.append("<h3>Note: Navigation may not work if viewed locally</h3>")
58
-
.append("<p>The AJAX-based navigation used throughout the jQuery Mobile docs may need to be viewed on a web server to work in certain browsers. If you see an error message when you click a link, try a different browser or <a href='https://github.com/jquery/jquery-mobile/wiki/Downloadable-Docs-Help'>view help</a>.</p>");
0 commit comments