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

Commit ca16d3c

Browse files
Changed option name to clearBtnText for consistency
1 parent 21698ef commit ca16d3c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

js/widgets/forms/textinput.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ $.widget( "mobile.textinput", $.mobile.widget, {
1818
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']",
1919
clearBtn: false,
2020
clearSearchButtonText: null, //deprecating for 1.3...
21-
clearButtonText: "clear text",
21+
clearBtnText: "clear text",
2222
disabled: false
2323
},
2424

@@ -32,7 +32,7 @@ $.widget( "mobile.textinput", $.mobile.widget, {
3232
miniclass = o.mini ? " ui-mini" : "",
3333
focusedEl,
3434
clearbtn,
35-
clearButtonText = o.clearSearchButtonText || o.clearButtonText;
35+
clearBtnText = o.clearSearchButtonText || o.clearBtnText;
3636

3737
function toggleClear() {
3838
setTimeout( function() {
@@ -72,7 +72,7 @@ $.widget( "mobile.textinput", $.mobile.widget, {
7272
}
7373

7474
if( needsClearBtn ) {
75-
clearbtn = $( "<a href='#' class='ui-input-clear' title='" + clearButtonText + "'>" + clearButtonText + "</a>" )
75+
clearbtn = $( "<a href='#' class='ui-input-clear' title='" + clearBtnText + "'>" + clearBtnText + "</a>" )
7676
.bind('click', function( event ) {
7777
input
7878
.val( "" )

0 commit comments

Comments
 (0)