Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion scripts/bundled-uncompressed/html5/jquery.history.js
Original file line number Diff line number Diff line change
Expand Up @@ -1763,7 +1763,7 @@
*/
History.onPopState = function(event,extra){
// Prepare
var stateId = false, newState = false, currentHash, currentState;
var stateId = false, newState = false, currentHash, currentState, isNavigationButtons = false;

// Reset the double check
History.doubleCheckComplete();
Expand Down Expand Up @@ -1798,6 +1798,7 @@
if ( stateId ) {
// Vanilla: Back/forward button was used
newState = History.getStateById(stateId);
isNavigationButtons = true;
}
else if ( History.expectedStateId ) {
// Vanilla: A new state was pushed, and popstate was called manually
Expand All @@ -1824,6 +1825,9 @@
History.busy(false);
return false;
}

// Store back / forward button boolean
newState.navigation = isNavigationButtons;

// Store the State
History.storeState(newState);
Expand Down
Loading