mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-04-21 22:54:44 +00:00
fixed one additional back button condition mentioned in issue #930 where the back button is added to a page that is directly linked with no hash. All navigation tests passing. https://github.com/jquery/jquery-mobile/issues/issue/930
This commit is contained in:
parent
6eefb23406
commit
eb2845d1dc
1 changed files with 1 additions and 0 deletions
|
|
@ -81,6 +81,7 @@ $.widget( "mobile.page", $.mobile.widget, {
|
|||
|
||||
// auto-add back btn on pages beyond first view
|
||||
if ( o.addBackBtn && role === "header" &&
|
||||
$( ".ui-page" ).length > 1 &&
|
||||
$elem.data( "url" ) !== $.mobile.path.stripHash( location.hash ) &&
|
||||
!leftbtn && $this.data( "backbtn" ) !== false ) {
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue