Skip to content

Commit

Permalink
fix for jquery-archive#2119; updated to
Browse files Browse the repository at this point in the history
  • Loading branch information
jgable committed Jul 20, 2011
1 parent 3afef99 commit 9ff4d4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/jquery.mobile.page.sections.js
Expand Up @@ -58,7 +58,7 @@ $( ":jqmData(role='page'), :jqmData(role='dialog')" ).live( "pagecreate", functi
// Auto-add back btn on pages beyond first view // Auto-add back btn on pages beyond first view
if ( o.addBackBtn && role === "header" && if ( o.addBackBtn && role === "header" &&
$( ".ui-page" ).length > 1 && $( ".ui-page" ).length > 1 &&
$elem.jqmData( "url" ) !== $.mobile.path.stripHash( location.hash ) && $this.jqmData( "url" ) !== $.mobile.path.stripHash( location.hash ) &&
!leftbtn ) { !leftbtn ) {


backBtn = $( "<a href='#' class='ui-btn-left' data-"+ $.mobile.ns +"rel='back' data-"+ $.mobile.ns +"icon='arrow-l'>"+ o.backBtnText +"</a>" ).prependTo( $this ); backBtn = $( "<a href='#' class='ui-btn-left' data-"+ $.mobile.ns +"rel='back' data-"+ $.mobile.ns +"icon='arrow-l'>"+ o.backBtnText +"</a>" ).prependTo( $this );
Expand Down

1 comment on commit 9ff4d4c

@davemcdermott
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix!

Please sign in to comment.