mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-04-30 19:04:43 +00:00
fixed theme inheritance on filter lists in IE7.
This commit is contained in:
parent
722ed2cbbf
commit
758e430653
1 changed files with 3 additions and 4 deletions
|
|
@ -16,10 +16,9 @@ $.widget( "mobile.textinput", $.mobile.widget, {
|
|||
themeclass;
|
||||
|
||||
if ( !theme ) {
|
||||
var themedParent = this.element.closest("[class*='ui-bar-'],[class*='ui-body-']");
|
||||
theme = themedParent.length ?
|
||||
/ui-(bar|body)-([a-z])/.exec( themedParent.attr("class") )[2] :
|
||||
"c";
|
||||
var themedParent = this.element.closest("[class*='ui-bar-'],[class*='ui-body-']"),
|
||||
themeLetter = themedParent.length && /ui-(bar|body)-([a-z])/.exec( themedParent.attr("class") ),
|
||||
theme = themeLetter && themeLetter[2] || "c";
|
||||
}
|
||||
|
||||
themeclass = " ui-body-" + theme;
|
||||
|
|
|
|||
Loading…
Reference in a new issue