Disabled ajax navigation in BlackBerry 5 and Opera Mini, for a more usable overall experience (and in some cases, due to insufficient native history implementations that don't track hash changes). Fixes #1644 and Fixes #1276

This commit is contained in:
scottjehl 2011-05-24 17:08:29 -04:00
parent 8929ac33b9
commit 7b578f7873

View file

@ -56,6 +56,14 @@ $.mobile.browser.ie = ( function() {
return v > 4 ? v : !v;
}() );
// override ajaxEnabled on platforms that have known conflicts with hash history updates
// or generally work better browsing in regular http for full page refreshes (BB5, Opera Mini)
if( window.blackberry && !window.WebKitPoint || window.operamini && Object.prototype.toString.call( window.operamini ) === "[object OperaMini]" ){
$.mobile.ajaxEnabled = false;
}
$.extend( $.support, {
orientation: "orientation" in window,
touch: "ontouchend" in document,