mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-05-12 08:33:09 +00:00
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.
This commit is contained in:
parent
4ce1bfb795
commit
84729a4fec
2 changed files with 6 additions and 1 deletions
|
|
@ -125,6 +125,11 @@
|
|||
<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() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue