jquery-src/jquery.calendars.picker.js
function(elem, hidden) {
			elem = $(elem.target || elem);
			var inst = plugin._getInst(elem);
			if (!$.isEmptyObject(inst)) {
				if (inst.inline || plugin.curInst === inst) {
					if ($.isFunction(inst.options.onChangeMonthYear) && (!inst.prevDate ||
							inst.prevDate.year() !== inst.drawDate.year() ||
							inst.prevDate.month() !== inst.drawDate.month())) {
						inst.options.onChangeMonthYear.apply(elem[0],
							[inst.drawDate.year(), inst.drawDate.month()]);
					}
				}
				if (inst.inline) {
					var index = $('a, :input', elem).index($(':focus', elem));
					elem.html(this._generateContent(elem[0], inst));
					var focus = elem.find('a, :input');
					focus.eq(Math.max(Math.min(index, focus.length - 1), 0)).focus();
				}
				else if (plugin.curInst === inst) {
					if (!inst.div) {
						inst.div = $('<div></div>').addClass(this._popupClass).
							css({display: (hidden ? 'none' : 'static'), position: 'absolute',
								left: elem.offset().left, top: elem.offset().top + elem.outerHeight()}).
							appendTo($(inst.options.popupContainer || 'body'));
						if ($.fn.mousewheel) {
							inst.div.mousewheel(this._doMouseWheel);
						}
					}
					inst.div.html(this._generateContent(elem[0], inst));
					elem.focus();
				}
			}
		}
function(elem, hidden) {
			elem = $(elem.target || elem);
			var inst = plugin._getInst(elem);
			if (!$.isEmptyObject(inst)) {
				if (inst.inline || plugin.curInst === inst) {
					if ($.isFunction(inst.options.onChangeMonthYear) && (!inst.prevDate ||
							inst.prevDate.year() !== inst.drawDate.year() ||
							inst.prevDate.month() !== inst.drawDate.month())) {
						inst.options.onChangeMonthYear.apply(elem[0],
							[inst.drawDate.year(), inst.drawDate.month()]);
					}
				}
				if (inst.inline) {
					var index = $('a, :input', elem).index($(':focus', elem));
					elem.html(this._generateContent(elem[0], inst));
					var focus = elem.find('a, :input');
					focus.eq(Math.max(Math.min(index, focus.length - 1), 0)).focus();
				}
				else if (plugin.curInst === inst) {
					if (!inst.div) {
						inst.div = $('<div></div>').addClass(this._popupClass).
							css({display: (hidden ? 'none' : 'static'), position: 'absolute',
								left: elem.offset().left, top: elem.offset().top + elem.outerHeight()}).
							appendTo($(inst.options.popupContainer || 'body'));
						if ($.fn.mousewheel) {
							inst.div.mousewheel(this._doMouseWheel);
						}
					}
					inst.div.html(this._generateContent(elem[0], inst));
					elem.focus();
				}
			}
		}
function ( elem , hidden ) { elem = $ ( elem . target || elem ) ; var inst = plugin . _getInst ( elem ) ; if ( ! $ . isEmptyObject ( inst ) ) { if ( inst . inline || plugin . curInst === inst ) { if ( $ . isFunction ( inst . options . onChangeMonthYear ) && ( ! inst . prevDate || inst . prevDate . year ( ) !== inst . drawDate . year ( ) || inst . prevDate . month ( ) !== inst . drawDate . month ( ) ) ) { inst . options . onChangeMonthYear . apply ( elem [ 0 ] , [ inst . drawDate . year ( ) , inst . drawDate . month ( ) ] ) ; } } if ( inst . inline ) { var index = $ ( 'a, :input' , elem ) . index ( $ ( ':focus' , elem ) ) ; elem . html ( this . _generateContent ( elem [ 0 ] , inst ) ) ; var focus = elem . find ( 'a, :input' ) ; focus . eq ( Math . max ( Math . min ( index , focus . length - 1 ) , 0 ) ) . focus ( ) ; } else if ( plugin . curInst === inst ) { if ( ! inst . div ) { inst . div = $ ( '<div></div>' ) . addClass ( this . _popupClass ) . css ( { display : ( hidden ? 'none' : 'static' ) , position : 'absolute' , left : elem . offset ( ) . left , top : elem . offset ( ) . top + elem . outerHeight ( ) } ) . appendTo ( $ ( inst . options . popupContainer || 'body' ) ) ; if ( $ . fn . mousewheel ) { inst . div . mousewheel ( this . _doMouseWheel ) ; } } inst . div . html ( this . _generateContent ( elem [ 0 ] , inst ) ) ; elem . focus ( ) ; } } }
Update the datepicker display.
@memberof CalendarsPicker
@private
@param elem {Event|Element} a focus event or the control to use.
@param hidden {boolean} <code>true</code> to initially hide the datepicker.
Update the datepicker display .