Skip to content

Commit 758e430

Browse files
author
scottjehl
committed
fixed theme inheritance on filter lists in IE7.
1 parent 722ed2c commit 758e430

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

js/jquery.mobile.forms.textinput.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,9 @@ $.widget( "mobile.textinput", $.mobile.widget, {
1616
themeclass;
1717

1818
if ( !theme ) {
19-
var themedParent = this.element.closest("[class*='ui-bar-'],[class*='ui-body-']");
20-
theme = themedParent.length ?
21-
/ui-(bar|body)-([a-z])/.exec( themedParent.attr("class") )[2] :
22-
"c";
19+
var themedParent = this.element.closest("[class*='ui-bar-'],[class*='ui-body-']"),
20+
themeLetter = themedParent.length && /ui-(bar|body)-([a-z])/.exec( themedParent.attr("class") ),
21+
theme = themeLetter && themeLetter[2] || "c";
2322
}
2423

2524
themeclass = " ui-body-" + theme;

0 commit comments

Comments
 (0)