Permalink
Browse files

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 84729a4feca6e5f458b7075958a7f1b80758ed9d
Showing with 6 additions and 1 deletion.
  1. +5 −0 docs/forms/textinputs/index.html
  2. +1 −1 js/jquery.mobile.forms.textinput.js
@@ -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>
@@ -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() {

0 comments on commit 84729a4

Please sign in to comment.