From 769450c176ec5b550fd6554d6fc641d0cdfd3bbf Mon Sep 17 00:00:00 2001 From: csaunders Date: Fri, 3 Jun 2011 15:51:04 -0400 Subject: [PATCH] Added a jQuery mobile configuration setting to allow you to specify that you always want the header and footer to be available. (Cannot toggle on/off state) --- js/jquery.mobile.core.js | 3 +++ js/jquery.mobile.fixHeaderFooter.js | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/js/jquery.mobile.core.js b/js/jquery.mobile.core.js index f1b75274e23..118dc532ddf 100644 --- a/js/jquery.mobile.core.js +++ b/js/jquery.mobile.core.js @@ -49,6 +49,9 @@ //error response message - appears when an Ajax page request fails pageLoadErrorMessage: "Error Loading Page", + //configure if you want the toolbar to always be presented as an overlay + toolbarAlwaysOverlay: false, + //support conditions that must be met in order to proceed //default enhanced qualifications are media query support OR IE 7+ gradeA: function(){ diff --git a/js/jquery.mobile.fixHeaderFooter.js b/js/jquery.mobile.fixHeaderFooter.js index 34d3c992586..c4c43d6d05c 100644 --- a/js/jquery.mobile.fixHeaderFooter.js +++ b/js/jquery.mobile.fixHeaderFooter.js @@ -62,7 +62,7 @@ $.fixedToolbars = (function(){ .bind( "vclick",function(event){ if( touchToggleEnabled ) { if( $(event.target).closest(ignoreTargets).length ){ return; } - if( !scrollTriggered ){ + if( !scrollTriggered && !$.mobile.toolbarAlwaysOverlay){ $.fixedToolbars.toggle(stateBefore); stateBefore = null; }