Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Changed option name to clearBtnText for consistency

  • Loading branch information...
commit ca16d3cd1bda51556e8859f838a42b05aa324fe0 1 parent 21698ef
Jasper de Groot jaspermdegroot authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 js/widgets/forms/textinput.js
6 js/widgets/forms/textinput.js
View
@@ -18,7 +18,7 @@ $.widget( "mobile.textinput", $.mobile.widget, {
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]), input[type='file']",
clearBtn: false,
clearSearchButtonText: null, //deprecating for 1.3...
- clearButtonText: "clear text",
+ clearBtnText: "clear text",
disabled: false
},
@@ -32,7 +32,7 @@ $.widget( "mobile.textinput", $.mobile.widget, {
miniclass = o.mini ? " ui-mini" : "",
focusedEl,
clearbtn,
- clearButtonText = o.clearSearchButtonText || o.clearButtonText;
+ clearBtnText = o.clearSearchButtonText || o.clearBtnText;
function toggleClear() {
setTimeout( function() {
@@ -72,7 +72,7 @@ $.widget( "mobile.textinput", $.mobile.widget, {
}
if( needsClearBtn ) {
- clearbtn = $( "<a href='#' class='ui-input-clear' title='" + clearButtonText + "'>" + clearButtonText + "</a>" )
+ clearbtn = $( "<a href='#' class='ui-input-clear' title='" + clearBtnText + "'>" + clearBtnText + "</a>" )
.bind('click', function( event ) {
input
.val( "" )
Please sign in to comment.
Something went wrong with that request. Please try again.