moved appends over to use $.pageContainer

This commit is contained in:
scottjehl 2010-10-20 12:09:03 -04:00
parent 453989e1bf
commit a0b814e26a
5 changed files with 6 additions and 5 deletions

View file

@ -1,5 +1,5 @@
//set up the theme switcher on the homepage
$('div').live('pagecreate',function(){
$('div').live('pagecreate',function(event){
if( !$(this).is('.ui-dialog,.ui-navbar-expanded')){
$('<a href="#">Switch theme</a>')
.buttonMarkup({
@ -15,4 +15,5 @@ $('div').live('pagecreate',function(){
return false;
});
}
event.stopPropagation();
});

View file

@ -11,7 +11,7 @@
'</div>'+
'<div data-role=\'content\' data-theme=\'c\'><ul data-role=\'listview\' data-inset=\'true\'></ul></div>'+
'</div>' )
.appendTo( 'body' ),
.appendTo( $.pageContainer ),
menu = menuPage.find('ul');
//menu items

View file

@ -70,7 +70,7 @@ $.fixedToolbars = (function(){
stickyFooter.before( stickyFooter.clone().addClass('ui-footer-duplicate') );
}
$(event.target).find('[data-role="footer"]').addClass('ui-footer-duplicate');
stickyFooter.appendTo('body').css('top',0);
stickyFooter.appendTo($.pageContainer).css('top',0);
setTop(stickyFooter);
}
});

View file

@ -48,7 +48,7 @@ $.fn.customSelect = function(options){
"</div>"+
"<div data-role='content'></div>"+
"</div>" )
.appendTo( "body" )
.appendTo( $.pageContainer )
.page(),
menuPageContent = menuPage.find( ".ui-content" ),
screen = $( "<div>", {

View file

@ -229,7 +229,7 @@ $.widget( "mobile.listview", $.mobile.widget, {
"data-theme": theme,
"data-count-theme": countTheme
})
.appendTo( "body" );
.appendTo( $.pageContainer );
newPage.page();