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

Commit

Permalink
Textinput: Apply class(es) listed in the value of the "wrapperClass" …
Browse files Browse the repository at this point in the history
…option when creating the wrapper.
  • Loading branch information
Gabriel Schulhof committed Jul 19, 2013
1 parent f33375f commit af74af6
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion js/widgets/forms/textinput.js
Expand Up @@ -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(){
Expand Down

0 comments on commit af74af6

Please sign in to comment.