Skip to content
This repository was archived by the owner on Oct 8, 2021. It is now read-only.

Commit af74af6

Browse files
author
Gabriel Schulhof
committed
Textinput: Apply class(es) listed in the value of the "wrapperClass" option when creating the wrapper.
1 parent f33375f commit af74af6

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

js/widgets/forms/textinput.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,16 @@ $.widget( "mobile.textinput", {
8585
},
8686

8787
_wrap: function(){
88-
return $( "<div class='" + ( this.isSearch ? "ui-input-search" : "ui-input-text" ) + " ui-body-" + (( this.options.theme === null ) ? "inherit": this.options.theme ) + ( this.options.corners ? " ui-corner-all": "" ) + ( this.options.mini ? " ui-mini": "" ) + ( this.options.disabled ? " ui-disabled ": "" ) + " ui-shadow-inset'></div>" );
88+
var opts = this.options;
89+
90+
return $( "<div class='" +
91+
( this.isSearch ? "ui-input-search " : "ui-input-text " ) +
92+
"ui-body-" + ( ( opts.theme === null ) ? "inherit": opts.theme ) + " " +
93+
( opts.corners ? "ui-corner-all ": "" ) +
94+
( opts.mini ? "ui-mini ": "" ) +
95+
( opts.disabled ? "ui-state-disabled ": "" ) +
96+
opts.wrapperClass + " " +
97+
"ui-shadow-inset'></div>" );
8998
},
9099

91100
_autoCorrect: function(){

0 commit comments

Comments
 (0)