mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-05-11 16:13:11 +00:00
needed some each() scopes
This commit is contained in:
parent
d0b1cb425d
commit
7d72bb407b
1 changed files with 7 additions and 2 deletions
|
|
@ -22,8 +22,13 @@ $.fn.fixHeaderFooter = function(options){
|
|||
},options);
|
||||
|
||||
//add transition and theme types
|
||||
els.filter('.ui-header').addClass( $.isArray(o.transition) ? o.transition[0] : o.transition).addClass('ui-bar-' + ($(this).is('[data-theme]') ? $(this).attr('data-theme') : 'a'));
|
||||
els.filter('.ui-footer').addClass( $.isArray(o.transition) ? o.transition[1] : o.transition).addClass('ui-bar-' + ($(this).is('[data-theme]') ? $(this).attr('data-theme') : 'a'));
|
||||
els.filter('.ui-header').each(function(){
|
||||
$(this).addClass( $.isArray(o.transition) ? o.transition[0] : o.transition).addClass('ui-bar-' + ($(this).is('[data-theme]') ? $(this).attr('data-theme') : 'a'));
|
||||
});
|
||||
|
||||
els.filter('.ui-footer').each(function(){
|
||||
$(this).addClass( $.isArray(o.transition) ? o.transition[1] : o.transition).addClass('ui-bar-' + ($(this).is('[data-theme]') ? $(this).attr('data-theme') : 'a'));
|
||||
});
|
||||
|
||||
//set placeholder heights, then bind custom events
|
||||
els
|
||||
|
|
|
|||
Loading…
Reference in a new issue