mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-03-16 22:10:25 +00:00
Consider data-role when picking page transition.
Re-use existing "isDialog" variable in changePage, instead of just looking at settings.role.
This commit is contained in:
parent
705ed4f308
commit
9cf3a60dee
1 changed files with 1 additions and 1 deletions
|
|
@ -911,7 +911,7 @@
|
|||
// Make sure we have a transition defined.
|
||||
settings.transition = settings.transition
|
||||
|| ( ( historyDir && !activeIsInitialPage ) ? active.transition : undefined )
|
||||
|| ( settings.role === "dialog" ? $.mobile.defaultDialogTransition : $.mobile.defaultPageTransition );
|
||||
|| ( isDialog ? $.mobile.defaultDialogTransition : $.mobile.defaultPageTransition );
|
||||
|
||||
// If we're navigating back in the URL history, set reverse accordingly.
|
||||
settings.reverse = settings.reverse || historyDir < 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue