mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-03-16 22:10:25 +00:00
moved changePage, pageLoading, and silentScroll methods to $.mobile obj.
This commit is contained in:
parent
06b383cbbf
commit
055bf14e3f
4 changed files with 7 additions and 7 deletions
|
|
@ -31,7 +31,7 @@
|
|||
|
||||
//finished with this
|
||||
function done(){
|
||||
$.changePage([menuPage, currentPage], 'pop', true);
|
||||
$.mobile.changePage([menuPage, currentPage], 'pop', true);
|
||||
menuPage.bind('pagehide',function(){
|
||||
menuPage.remove();
|
||||
});
|
||||
|
|
@ -45,6 +45,6 @@
|
|||
menuPage.page();
|
||||
|
||||
//change page now
|
||||
$.changePage([currentPage, menuPage], 'pop', false);
|
||||
$.mobile.changePage([currentPage, menuPage], 'pop', false);
|
||||
};
|
||||
})(jQuery);
|
||||
|
|
|
|||
|
|
@ -52,7 +52,7 @@ $.widget( "mobile.dialog", $.mobile.widget, {
|
|||
},
|
||||
|
||||
close: function(){
|
||||
$.changePage([this.element, $.activePage], undefined, true, true );
|
||||
$.mobile.changePage([this.element, $.activePage], undefined, true, true );
|
||||
}
|
||||
});
|
||||
})( jQuery );
|
||||
|
|
@ -217,7 +217,7 @@ $.widget( "mobile.selectmenu", $.mobile.widget, {
|
|||
|
||||
self.menuType = "page";
|
||||
self.menuPageContent.append( self.list );
|
||||
$.changePage(self.menuPage, 'pop', false, false);
|
||||
$.mobile.changePage(self.menuPage, 'pop', false, false);
|
||||
}
|
||||
else {
|
||||
self.menuType = "overlay";
|
||||
|
|
@ -251,7 +251,7 @@ $.widget( "mobile.selectmenu", $.mobile.widget, {
|
|||
}
|
||||
|
||||
if(self.menuType == "page"){
|
||||
$.changePage([self.menuPage,self.thisPage], 'pop', true, false);
|
||||
$.mobile.changePage([self.menuPage,self.thisPage], 'pop', true, false);
|
||||
self.menuPage.one("pagehide",function(){
|
||||
focusButton();
|
||||
//return false;
|
||||
|
|
|
|||
|
|
@ -182,7 +182,7 @@
|
|||
url = getBaseURL() + url;
|
||||
}
|
||||
|
||||
$.changePage({
|
||||
changePage({
|
||||
url: url,
|
||||
type: type,
|
||||
data: $(this).serialize()
|
||||
|
|
@ -604,7 +604,7 @@
|
|||
};
|
||||
|
||||
//TODO - add to jQuery.mobile, not $
|
||||
$.extend({
|
||||
$.extend($.mobile, {
|
||||
pageLoading: pageLoading,
|
||||
changePage: changePage,
|
||||
silentScroll: silentScroll
|
||||
|
|
|
|||
Loading…
Reference in a new issue