From daa76e00fa5e5a466da70291a243eb0a2acdda5e Mon Sep 17 00:00:00 2001 From: scottjehl Date: Fri, 8 Oct 2010 22:52:36 -0400 Subject: [PATCH] enabled an opt-out for headers or footers that shouldn't follow on scroll. Just add [data-position="inline"] --- js/jquery.mobile.fixHeaderFooter.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/jquery.mobile.fixHeaderFooter.js b/js/jquery.mobile.fixHeaderFooter.js index 4695a50a..1ea6b845 100644 --- a/js/jquery.mobile.fixHeaderFooter.js +++ b/js/jquery.mobile.fixHeaderFooter.js @@ -8,8 +8,8 @@ $.fn.fixHeaderFooter = function(options){ return $(this).each(function(){ if( $(this).data('fullscreen') ){ $(this).addClass('ui-page-fullscreen'); } - $(this).find('.ui-header').addClass('ui-header-fixed ui-fixed-inline fade'); //should be slidedown - $(this).find('.ui-footer').addClass('ui-footer-fixed ui-fixed-inline fade'); //should be slideup + $(this).find('.ui-header:not([data-position="inline"])').addClass('ui-header-fixed ui-fixed-inline fade'); //should be slidedown + $(this).find('.ui-footer:not([data-position="inline"])').addClass('ui-footer-fixed ui-fixed-inline fade'); //should be slideup }); };