From 7d72bb407bae75b9893b40b1c4842c9b7506e633 Mon Sep 17 00:00:00 2001 From: scottjehl Date: Thu, 16 Sep 2010 12:21:08 -0400 Subject: [PATCH] needed some each() scopes --- js/jQuery.fixHeaderFooter.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/js/jQuery.fixHeaderFooter.js b/js/jQuery.fixHeaderFooter.js index b36e219f..4a76a096 100644 --- a/js/jQuery.fixHeaderFooter.js +++ b/js/jQuery.fixHeaderFooter.js @@ -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