mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-04-27 09:24:46 +00:00
updated to use new changePage function, which no longer has a "from" arg
This commit is contained in:
parent
0d8956cf0c
commit
cb13c2f84a
3 changed files with 12 additions and 4 deletions
|
|
@ -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;
|
||||
});
|
||||
})
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -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" );
|
||||
|
|
|
|||
Loading…
Reference in a new issue