Auto-add back btn on pages beyond first view #3553

Closed
quanta42 opened this Issue Feb 9, 2012 · 2 comments

Comments

Projects
None yet
3 participants
@quanta42

quanta42 commented Feb 9, 2012

I had a problem when dealing with back button.
In fact at this line: https://github.com/jquery/jquery-mobile/blob/master/js/jquery.mobile.page.sections.js#L59
$this should be $page.

Thanks for ghislain to have worked with me on this problem.

@ghost ghost assigned gseguin Feb 9, 2012

@gseguin

This comment has been minimized.

Show comment
Hide comment
@gseguin

gseguin Feb 9, 2012

Member

I talked with @johnbender who seems to agree with the fact that $this should be $page.

Member

gseguin commented Feb 9, 2012

I talked with @johnbender who seems to agree with the fact that $this should be $page.

@ladar

This comment has been minimized.

Show comment
Hide comment
@ladar

ladar Feb 13, 2012

The back button logic needs to be evaluated during pageshow, not pagecreate. If you load page A navigate to page B, then return to page A, the back button will not show up! If you load page B first, then navigate to page A, the back button will show up! This also means that if you reset the urlHistory stack and then load the page, the back button could still show up!

ladar commented Feb 13, 2012

The back button logic needs to be evaluated during pageshow, not pagecreate. If you load page A navigate to page B, then return to page A, the back button will not show up! If you load page B first, then navigate to page A, the back button will show up! This also means that if you reset the urlHistory stack and then load the page, the back button could still show up!

@gseguin gseguin closed this in 3a90c79 Mar 8, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment