Commit ea3e4660 authored by Sven Franck's avatar Sven Franck

undo changes

parent 4fbd0d7d
...@@ -4475,18 +4475,24 @@ $.widget( "mobile.page", { ...@@ -4475,18 +4475,24 @@ $.widget( "mobile.page", {
}, },
go: function( steps ) { go: function( steps ) {
console.log("GOOO")
//if hashlistening is enabled use native history method //if hashlistening is enabled use native history method
if ( $.mobile.hashListeningEnabled ) { if ( $.mobile.hashListeningEnabled ) {
console.log("wtf")
console.log(steps)
window.history.go( steps ); window.history.go( steps );
} else { } else {
console.log("JQM handle");
//we are not listening to the hash so handle history internally //we are not listening to the hash so handle history internally
var activeIndex = $.mobile.navigate.history.activeIndex, var activeIndex = $.mobile.navigate.history.activeIndex,
index = activeIndex + parseInt( steps, 10 ), index = activeIndex + parseInt( steps, 10 ),
url = $.mobile.navigate.history.stack[ index ].url, url = $.mobile.navigate.history.stack[ index ].url,
direction = ( steps >= 1 )? "forward" : "back"; direction = ( steps >= 1 )? "forward" : "back";
console.log(activeIndex)
console.log(index)
console.log(url)
console.log(direction)
//update the history object //update the history object
$.mobile.navigate.history.activeIndex = index; $.mobile.navigate.history.activeIndex = index;
$.mobile.navigate.history.previousIndex = activeIndex; $.mobile.navigate.history.previousIndex = activeIndex;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment