jquery-src/jquery.calendars.picker.js
function(elem, keyUp) {
			var inst = this._getInst(elem);
			if (!$.isEmptyObject(inst)) {
				var value = '';
				var altValue = '';
				var sep = (inst.options.multiSelect ? inst.options.multiSeparator :
					inst.options.rangeSeparator);
				var calendar = inst.options.calendar;
				var dateFormat = inst.get('dateFormat');
				var altFormat = inst.options.altFormat || dateFormat;
				var settings = {localNumbers: inst.options.localNumbers};
				for (var i = 0; i < inst.selectedDates.length; i++) {
					value += (keyUp ? '' : (i > 0 ? sep : '') +
						calendar.formatDate(dateFormat, inst.selectedDates[i], settings));
					altValue += (i > 0 ? sep : '') +
						calendar.formatDate(altFormat, inst.selectedDates[i], settings);
				}
				if (!inst.inline && !keyUp) {
					$(elem).val(value);
				}
				$(inst.options.altField).val(altValue);
				if ($.isFunction(inst.options.onSelect) && !keyUp && !inst.inSelect) {
					inst.inSelect = true; // Prevent endless loops
					inst.options.onSelect.apply(elem, [inst.selectedDates]);
					inst.inSelect = false;
				}
			}
		}
function(elem, keyUp) {
			var inst = this._getInst(elem);
			if (!$.isEmptyObject(inst)) {
				var value = '';
				var altValue = '';
				var sep = (inst.options.multiSelect ? inst.options.multiSeparator :
					inst.options.rangeSeparator);
				var calendar = inst.options.calendar;
				var dateFormat = inst.get('dateFormat');
				var altFormat = inst.options.altFormat || dateFormat;
				var settings = {localNumbers: inst.options.localNumbers};
				for (var i = 0; i < inst.selectedDates.length; i++) {
					value += (keyUp ? '' : (i > 0 ? sep : '') +
						calendar.formatDate(dateFormat, inst.selectedDates[i], settings));
					altValue += (i > 0 ? sep : '') +
						calendar.formatDate(altFormat, inst.selectedDates[i], settings);
				}
				if (!inst.inline && !keyUp) {
					$(elem).val(value);
				}
				$(inst.options.altField).val(altValue);
				if ($.isFunction(inst.options.onSelect) && !keyUp && !inst.inSelect) {
					inst.inSelect = true; // Prevent endless loops
					inst.options.onSelect.apply(elem, [inst.selectedDates]);
					inst.inSelect = false;
				}
			}
		}
function ( elem , keyUp ) { var inst = this . _getInst ( elem ) ; if ( ! $ . isEmptyObject ( inst ) ) { var value = '' ; var altValue = '' ; var sep = ( inst . options . multiSelect ? inst . options . multiSeparator : inst . options . rangeSeparator ) ; var calendar = inst . options . calendar ; var dateFormat = inst . get ( 'dateFormat' ) ; var altFormat = inst . options . altFormat || dateFormat ; var settings = { localNumbers : inst . options . localNumbers } ; for ( var i = 0 ; i < inst . selectedDates . length ; i ++ ) { value += ( keyUp ? '' : ( i > 0 ? sep : '' ) + calendar . formatDate ( dateFormat , inst . selectedDates [ i ] , settings ) ) ; altValue += ( i > 0 ? sep : '' ) + calendar . formatDate ( altFormat , inst . selectedDates [ i ] , settings ) ; } if ( ! inst . inline && ! keyUp ) { $ ( elem ) . val ( value ) ; } $ ( inst . options . altField ) . val ( altValue ) ; if ( $ . isFunction ( inst . options . onSelect ) && ! keyUp && ! inst . inSelect ) { inst . inSelect = true ; // Prevent endless loops inst . options . onSelect . apply ( elem , [ inst . selectedDates ] ) ; inst . inSelect = false ; } } }
Update the input field and any alternate field with the current dates.
@memberof CalendarsPicker
@private
@param elem {Element} The control to use.
@param keyUp {boolean} <code>true</code> if coming from <code>keyUp</code> processing (internal).
Update the input field and any alternate field with the current dates .