mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-04-22 23:24:43 +00:00
moved appends over to use $.pageContainer
This commit is contained in:
parent
453989e1bf
commit
a0b814e26a
5 changed files with 6 additions and 5 deletions
|
|
@ -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();
|
||||
});
|
||||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
});
|
||||
|
|
|
|||
|
|
@ -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>", {
|
||||
|
|
|
|||
|
|
@ -229,7 +229,7 @@ $.widget( "mobile.listview", $.mobile.widget, {
|
|||
"data-theme": theme,
|
||||
"data-count-theme": countTheme
|
||||
})
|
||||
.appendTo( "body" );
|
||||
.appendTo( $.pageContainer );
|
||||
|
||||
newPage.page();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue