enabled an opt-out for headers or footers that shouldn't follow on scroll. Just add [data-position="inline"]

This commit is contained in:
scottjehl 2010-10-08 22:52:36 -04:00
parent 65343f158b
commit daa76e00fa

View file

@ -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
});
};