Skip to content

Commit e38a25d

Browse files
author
scottjehl
committed
make sure the sticky footer matching is only true if data-ids are specified. This makes "tap" work again when toggling fixed headers and footers.
1 parent 27b4cd2 commit e38a25d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

js/jquery.mobile.fixHeaderFooter.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,9 @@ $.fixedToolbars = (function(){
109109
prevFooter = prevPage && prevPage.find( ":jqmData(role='footer')" );
110110
var prevFooterMatches = prevFooter.jqmData( "id" ) === id;
111111

112-
if( prevFooterMatches ){
112+
if( id && prevFooterMatches ){
113113
stickyFooter = footer;
114-
setTop( stickyFooter.removeClass("fade").appendTo( $.mobile.pageContainer ) );
114+
setTop( stickyFooter.removeClass( "fade in out" ).appendTo( $.mobile.pageContainer ) );
115115
}
116116
});
117117

@@ -122,9 +122,9 @@ $.fixedToolbars = (function(){
122122
if( stickyFooter && stickyFooter.length ){
123123

124124
setTimeout(function(){
125-
setTop( stickyFooter.appendTo( $this ) );
125+
setTop( stickyFooter.appendTo( $this ).addClass("fade") );
126126
stickyFooter = null;
127-
},400);
127+
}, 500);
128128
}
129129

130130
$.fixedToolbars.show(true, this);

0 commit comments

Comments
 (0)