From cd7f8f02cf84d395bf0f06b752fe8572d4871482 Mon Sep 17 00:00:00 2001 From: Benjamin Albert Date: Fri, 13 Nov 2015 15:12:40 +0200 Subject: Datepicker: Refactor `_updateAlternate()` method Closes gh-1647 --- ui/widgets/datepicker.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ); } }, -- cgit v1.2.3