mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-04-20 22:30:59 +00:00
added data-nobackbtn attr to override auto-add of back buttons at the header level. Fixes #131
This commit is contained in:
parent
f78dccb1fb
commit
8cbb6186dc
1 changed files with 1 additions and 1 deletions
|
|
@ -42,7 +42,7 @@ $.widget( "mobile.page", $.mobile.widget, {
|
|||
}
|
||||
|
||||
//auto-add back btn on pages beyond first view
|
||||
if ( $.mobile.addBackBtn && role === "header" && $.mobile.urlStack.length > 1 && !leftbtn ) {
|
||||
if ( $.mobile.addBackBtn && role === "header" && $.mobile.urlStack.length > 1 && !leftbtn && !$this.data( "noBackBtn" ) ) {
|
||||
$( "<a href='#' class='ui-btn-left' data-icon='arrow-l'>Back</a>" )
|
||||
.tap(function() {
|
||||
history.back();
|
||||
|
|
|
|||
Loading…
Reference in a new issue