mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-05-20 12:21:52 +00:00
hashchange event handler should still load the first url, even if Ajax is disabled. Fixes #879
This commit is contained in:
parent
b7001d8148
commit
9ed13f86c8
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue