From 84729a4feca6e5f458b7075958a7f1b80758ed9d Mon Sep 17 00:00:00 2001 From: toddparker Date: Sat, 15 Oct 2011 09:43:16 -0400 Subject: [PATCH] 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. --- docs/forms/textinputs/index.html | 5 +++++ js/jquery.mobile.forms.textinput.js | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/docs/forms/textinputs/index.html b/docs/forms/textinputs/index.html index 41eb7136..56c8dc9b 100755 --- a/docs/forms/textinputs/index.html +++ b/docs/forms/textinputs/index.html @@ -125,6 +125,11 @@ +
+ + +
+

Textareas

diff --git a/js/jquery.mobile.forms.textinput.js b/js/jquery.mobile.forms.textinput.js index d545d51e..01789d01 100644 --- a/js/jquery.mobile.forms.textinput.js +++ b/js/jquery.mobile.forms.textinput.js @@ -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() {