Skip to content

Instantly share code, notes, and snippets.

@abuiles
Created November 18, 2010 00:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save abuiles/704452 to your computer and use it in GitHub Desktop.
Save abuiles/704452 to your computer and use it in GitHub Desktop.
Basically I always render the toolbar for the home page with
%div{"data-role" => "header", "data-nobackbtn" => "true" }
In '$(document).ready' I added
$( '[data-role=page]' ).live('pageshow', function(event){
var $et = $( event.target );
if( $et.attr('class') == "home" || $et.children(0).attr('class') == "home" ){
if ($('.home').length > 1 ){
$('.home:first').remove()
}
}
.....
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment