public
Created

  • Download Gist
gistfile1.txt
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
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()
}
}
.....
}

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.