Datepicker: Refactor _updateAlternate() method

Closes gh-1647
This commit is contained in:
Benjamin Albert 2015-11-13 15:12:40 +02:00 committed by Scott González
parent 0cc197a421
commit cd7f8f02cf

View File

@ -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 );
}
},