updated to use new changePage function, which no longer has a "from" arg

This commit is contained in:
scottjehl 2010-10-21 13:12:25 -04:00
parent 0d8956cf0c
commit cb13c2f84a
3 changed files with 12 additions and 4 deletions

View file

@ -26,9 +26,9 @@ $.fn.addSourceLink = function(style){
var activePage = $(this).parents('.ui-page-active');
page.find('.ui-content').append(codeblock);
$.changePage(activePage, page, 'slideup',false);
$.changePage(page, 'slideup',false);
page.find('.ui-btn-left').click(function(){
$.changePage(page, activepage, 'slideup',true);
$.changePage(activepage, 'slideup',true);
return false;
});
})

View file

@ -13,6 +13,14 @@ $.fn.dialog = function(options){
.addClass('ui-page ui-dialog ui-body-a')
.find('[data-role=header]')
.addClass('ui-corner-top ui-overlay-shadow')
.find('.ui-btn-left').tap(function(){
$.changePage()
return false;
})
.click(function(){
return false;
})
.end()
.end()
.find('.ui-content,[data-role=footer]')
.last()

View file

@ -95,7 +95,7 @@ $.fn.customSelect = function(options){
if( menuHeight > window.innerHeight - 80 || !$.support.scrollTop ){
menuType = "page";
menuPageContent.append( list );
$.changePage(thisPage, menuPage, false, false);
$.changePage(menuPage, false, false);
}
else {
menuType = "overlay";
@ -119,7 +119,7 @@ $.fn.customSelect = function(options){
function hidemenu(){
if(menuType == "page"){
$.changePage(menuPage, thisPage, false, true);
$.changePage(thisPage, false, true);
}
else{
screen.addClass( "ui-screen-hidden" );