mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-05-02 03:44:43 +00:00
removed click handler on back button - used data-rel='back' instead.
This commit is contained in:
parent
423e6fb276
commit
d1976fa265
1 changed files with 1 additions and 6 deletions
|
|
@ -78,12 +78,7 @@ $.widget( "mobile.page", $.mobile.widget, {
|
|||
$.mobile.urlHistory.stack.length > 0 &&
|
||||
!leftbtn && $this.data( "backbtn" ) !== false ) {
|
||||
|
||||
$( "<a href='#' class='ui-btn-left' data-icon='arrow-l'>"+ o.backBtnText +"</a>" )
|
||||
.click(function() {
|
||||
history.back();
|
||||
return false;
|
||||
})
|
||||
.prependTo( $this );
|
||||
$( "<a href='#' class='ui-btn-left' data-rel='back' data-icon='arrow-l'>"+ o.backBtnText +"</a>" ).prependTo( $this );
|
||||
}
|
||||
|
||||
//page title
|
||||
|
|
|
|||
Loading…
Reference in a new issue