Skip to content
This repository was archived by the owner on Oct 8, 2021. It is now read-only.

Commit ef4adab

Browse files
committed
docs and default for phonegap navigation fix
1 parent ef0d3c1 commit ef4adab

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

docs/api/globalconfig.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,9 @@ <h2>Configurable options</h2>
139139
<dt><code>pageLoadErrorMessageTheme</code> <em>string</em>, default: "e"</dt>
140140
<dd>Set the theme that the error message box uses.</dd>
141141

142+
<dt><code>phonegapNavigationEnabled</code> <em>boolean</em>, default: false</dt>
143+
<dd>Replace calls to <code>window.history.back</code> with PhoneGap's navigation helper where it is available. This addresses navigation issues on page refresh in Android PhoneGap applications using jQuery Mobile.</dd>
144+
142145
<dt><code>pushStateEnabled</code> <em>boolean</em>, default: true</dt>
143146
<dd>Enhancement to use <code>history.replaceState</code> in supported browsers, to convert the hash-based Ajax URL into the full document path. Note that we <a href="../pages/page-navmodel.html">recommend</a> disabling this feature if Ajax is disabled or if extensive use of external links are used.</dd>
144147

js/jquery.mobile.core.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,10 @@ define( [ "jquery", "../external/requirejs/text!../version.txt", "./jquery.mobil
7575
// For error messages, which theme does the box uses?
7676
pageLoadErrorMessageTheme: "e",
7777

78+
// replace calls to window.history.back with phonegaps navigation helper
79+
// where it is provided on the window object
80+
phonegapNavigationEnabled: false,
81+
7882
//automatically initialize the DOM when it's ready
7983
autoInitializePage: true,
8084

0 commit comments

Comments
 (0)