Permalink
Browse files

Textinput: Apply class(es) listed in the value of the "wrapperClass" …

…option when creating the wrapper.
  • Loading branch information...
gabrielschulhof committed Jul 19, 2013
1 parent f33375f commit af74af6401e76e541c558ac0ff7f7b60f118f52c
Showing with 10 additions and 1 deletion.
  1. +10 −1 js/widgets/forms/textinput.js
@@ -85,7 +85,16 @@ $.widget( "mobile.textinput", {
},
_wrap: function(){
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>" );
var opts = this.options;
return $( "<div class='" +
( this.isSearch ? "ui-input-search " : "ui-input-text " ) +
"ui-body-" + ( ( opts.theme === null ) ? "inherit": opts.theme ) + " " +
( opts.corners ? "ui-corner-all ": "" ) +
( opts.mini ? "ui-mini ": "" ) +
( opts.disabled ? "ui-state-disabled ": "" ) +
opts.wrapperClass + " " +
"ui-shadow-inset'></div>" );
},
_autoCorrect: function(){

0 comments on commit af74af6

Please sign in to comment.