same fix in a few other places

This commit is contained in:
ehynds 2010-12-28 10:15:30 -05:00
parent be51f8abe3
commit c8a161a04d
3 changed files with 11 additions and 8 deletions

View file

@ -7,7 +7,7 @@
(function($, undefined ) {
$.fn.controlgroup = function(options){
return $(this).each(function(){
return this.each(function(){
var o = $.extend({
direction: $( this ).data( "type" ) || "vertical",
shadow: false

View file

@ -6,13 +6,16 @@
*/
(function($, undefined ) {
$.fn.fixHeaderFooter = function(options){
if( !$.support.scrollTop ){ return $(this); }
return $(this).each(function(){
if( $(this).data('fullscreen') ){ $(this).addClass('ui-page-fullscreen'); }
$(this).find('.ui-header[data-position="fixed"]').addClass('ui-header-fixed ui-fixed-inline fade'); //should be slidedown
$(this).find('.ui-footer[data-position="fixed"]').addClass('ui-footer-fixed ui-fixed-inline fade'); //should be slideup
if( !$.support.scrollTop ){ return this; }
return this.each(function(){
var $this = $(this);
if( $this.data('fullscreen') ){ $this.addClass('ui-page-fullscreen'); }
$this.find('.ui-header[data-position="fixed"]').addClass('ui-header-fixed ui-fixed-inline fade'); //should be slidedown
$this.find('.ui-footer[data-position="fixed"]').addClass('ui-footer-fixed ui-fixed-inline fade'); //should be slideup
});
};
};
//single controller for all showing,hiding,toggling
$.fixedToolbars = (function(){

View file

@ -6,7 +6,7 @@
*/
(function($, undefined ) {
$.fn.grid = function(options){
return $(this).each(function(){
return this.each(function(){
var o = $.extend({
grid: null
},options);