mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-03-16 22:10:25 +00:00
renamed togglePageZoom option disablePageZoom
This commit is contained in:
parent
716bf7f45d
commit
893508710a
1 changed files with 3 additions and 3 deletions
|
|
@ -10,7 +10,7 @@ define( [ "jquery", "./jquery.mobile.widget", "./jquery.mobile.core", "./jquery.
|
|||
$.widget( "mobile.fixedtoolbar", $.mobile.widget, {
|
||||
options: {
|
||||
visibleOnPageShow: true,
|
||||
togglePageZoom: true,
|
||||
disablePageZoom: true,
|
||||
transition: "fade", //can be none, fade, slide (slide maps to slideup or slidedown)
|
||||
fullscreen: false,
|
||||
tapToggle: true,
|
||||
|
|
@ -115,7 +115,7 @@ define( [ "jquery", "./jquery.mobile.widget", "./jquery.mobile.core", "./jquery.
|
|||
// This method is meant to disable zoom while a fixed-positioned toolbar page is visible
|
||||
$el.closest( ".ui-page" )
|
||||
.bind( "pagebeforeshow", function(){
|
||||
if( o.togglePageZoom ){
|
||||
if( o.disablePageZoom ){
|
||||
$.mobile.zoom.disable( true );
|
||||
}
|
||||
if( o.visibleOnPageShow ){
|
||||
|
|
@ -136,7 +136,7 @@ define( [ "jquery", "./jquery.mobile.widget", "./jquery.mobile.core", "./jquery.
|
|||
}
|
||||
})
|
||||
.bind( "pagebeforehide", function(){
|
||||
if( o.togglePageZoom ){
|
||||
if( o.disablePageZoom ){
|
||||
$.mobile.zoom.enable( true );
|
||||
}
|
||||
if( o.updatePagePadding ){
|
||||
|
|
|
|||
Loading…
Reference in a new issue