Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Globally disable jQueryMobile's AJAX navigation

Roland Geider1801d72527b3
diff --git a/wger/manager/static/js/workout-manager-mobile.js b/wger/manager/static/js/workout-manager-mobile.js
index 91640c37f..a04769478 100644
--- a/wger/manager/static/js/workout-manager-mobile.js
+++ b/wger/manager/static/js/workout-manager-mobile.js
@@ -51,4 +51,7 @@ $(document).on('pageinit', function () {
} else {
console.debug('MozActivity not available, opening links as usual.');
}
-});
+
+ // Globally disable jQueryMobile's AJAX navigation
+ $.mobile.ajaxEnabled = false;
+});
\ No newline at end of file