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

Commit

Permalink
Browse files Browse the repository at this point in the history
Added styling support for input type=color
Just for good measure. All HTML5 inputs are now auto enhanced into the
styled versions. We may need to decide if any of these need to be
degraded if the controls are wonky in some browsers.
  • Loading branch information
toddparker committed Oct 15, 2011
1 parent 4ce1bfb commit 84729a4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions docs/forms/textinputs/index.html
Expand Up @@ -125,6 +125,11 @@ <h3>More text input types</h3>
<input type="datetime-local" name="datetime-l" id="datetime-l" value="" />
</div>

<div data-role="fieldcontain">
<label for="color">Color:</label>
<input type="color" name="color" id="color" value="" />
</div>



<h2>Textareas</h2>
Expand Down
2 changes: 1 addition & 1 deletion js/jquery.mobile.forms.textinput.js
Expand Up @@ -10,7 +10,7 @@
$.widget( "mobile.textinput", $.mobile.widget, {
options: {
theme: null,
initSelector: "input[type='text'], input[type='search'], :jqmData(type='search'), input[type='number'], :jqmData(type='number'), input[type='password'], input[type='email'], input[type='url'], input[type='tel'], textarea, input[type='time'], input[type='date'], input[type='month'], input[type='week'], input[type='datetime'], input[type='datetime-local'], input:not([type])"
initSelector: "input[type='text'], input[type='search'], :jqmData(type='search'), input[type='number'], :jqmData(type='number'), input[type='password'], input[type='email'], input[type='url'], input[type='tel'], textarea, input[type='time'], input[type='date'], input[type='month'], input[type='week'], input[type='datetime'], input[type='datetime-local'], input[type='color'], input:not([type])"
},

_create: function() {
Expand Down

0 comments on commit 84729a4

Please sign in to comment.