Skip to content

Commit 926982b

Browse files
author
maggiewachs
committed
Fixed bug 595, where form elements were not properly inheriting the theme. Form controls need to be enhanced after the page containers so they'll pick up on the containers' theme classes.
1 parent 60da49c commit 926982b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

js/jquery.mobile.page.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,6 @@ $.widget( "mobile.page", $.mobile.widget, {
4747

4848
$elem.find( "[data-role='nojs']" ).addClass( "ui-nojs" );
4949

50-
this._enchanceControls();
51-
5250
// pre-find data els
5351
var $dataEls = $elem.find( "[data-role]" ).andSelf().each(function() {
5452
var $this = $( this ),
@@ -122,6 +120,9 @@ $.widget( "mobile.page", $.mobile.widget, {
122120
break;
123121
}
124122
});
123+
124+
//enhance form controls
125+
this._enhanceControls();
125126

126127
//links in bars, or those with data-role become buttons
127128
$elem.find( "[data-role='button'], .ui-bar > a, .ui-header > a, .ui-footer > a" )
@@ -142,7 +143,7 @@ $.widget( "mobile.page", $.mobile.widget, {
142143
$elem.fixHeaderFooter();
143144
},
144145

145-
_enchanceControls: function() {
146+
_enhanceControls: function() {
146147
var o = this.options;
147148

148149
// degrade inputs to avoid poorly implemented native functionality

0 commit comments

Comments
 (0)