hashchange event handler should still load the first url, even if Ajax is disabled. Fixes #879

This commit is contained in:
scottjehl 2011-01-25 22:39:29 -05:00
parent b7001d8148
commit 9ed13f86c8

View file

@ -616,10 +616,10 @@
//hashchange event handler
$window.bind( "hashchange", function(e, triggered) {
if( !urlHistory.listeningEnabled || !$.mobile.ajaxEnabled ||
if( !triggered && ( !urlHistory.listeningEnabled || !$.mobile.ajaxEnabled ||
// TODO: deprecated - remove at 1.0
// only links need to be checked here, as forms don't trigger a hashchange event (they just silently update the hash)
( !$.mobile.ajaxLinksEnabled ) ){
!$.mobile.ajaxLinksEnabled ) ){
return;
}