diff options
author | Benjamin Albert <benjamin_a5@yahoo.com> | 2015-11-13 15:12:40 +0200 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2015-11-13 10:50:36 -0500 |
commit | cd7f8f02cf84d395bf0f06b752fe8572d4871482 (patch) | |
tree | bd42267455b32ecd48f59dd463e4c305a427331d /ui/widgets/datepicker.js | |
parent | 0cc197a421202b676d8d61e629f27bf7c68af027 (diff) | |
download | jquery-ui-cd7f8f02cf84d395bf0f06b752fe8572d4871482.tar.gz jquery-ui-cd7f8f02cf84d395bf0f06b752fe8572d4871482.zip |
Datepicker: Refactor `_updateAlternate()` method
Closes gh-1647
Diffstat (limited to 'ui/widgets/datepicker.js')
-rw-r--r-- | ui/widgets/datepicker.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/widgets/datepicker.js b/ui/widgets/datepicker.js index f4631c6a7..b116a1352 100644 --- a/ui/widgets/datepicker.js +++ b/ui/widgets/datepicker.js @@ -1089,7 +1089,7 @@ $.extend( Datepicker.prototype, { altFormat = this._get( inst, "altFormat" ) || this._get( inst, "dateFormat" ); date = this._getDate( inst ); dateStr = this.formatDate( altFormat, date, this._getFormatConfig( inst ) ); - $( altField ).each( function() { $( this ).val( dateStr ); } ); + $( altField ).val( dateStr ); } }, |