mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-03-17 06:20:26 +00:00
same fix in a few other places
This commit is contained in:
parent
be51f8abe3
commit
c8a161a04d
3 changed files with 11 additions and 8 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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(){
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
*/
|
||||
(function($, undefined ) {
|
||||
$.fn.grid = function(options){
|
||||
return $(this).each(function(){
|
||||
return this.each(function(){
|
||||
var o = $.extend({
|
||||
grid: null
|
||||
},options);
|
||||
|
|
|
|||
Loading…
Reference in a new issue