jquery-src/jquery.calendars.picker.js
function(elem) {
			elem = $(elem.target || elem);
			var inst = plugin._getInst(elem);
			if (plugin.curInst === inst) {
				return;
			}
			if (plugin.curInst) {
				plugin.hide(plugin.curInst, true);
			}
			if (!$.isEmptyObject(inst)) {
				// Retrieve existing date(s)
				inst.lastVal = null;
				inst.selectedDates = plugin._extractDates(inst, elem.val());
				inst.pickingRange = false;
				inst.drawDate = plugin._checkMinMax((inst.selectedDates[0] ||
					inst.get('defaultDate') || inst.options.calendar.today()).newDate(), inst);
				inst.prevDate = inst.drawDate.newDate();
				plugin.curInst = inst;
				// Generate content
				plugin._update(elem[0], true);
				// Adjust position before showing
				var offset = plugin._checkOffset(inst);
				inst.div.css({left: offset.left, top: offset.top});
				// And display
				var showAnim = inst.options.showAnim;
				var showSpeed = inst.options.showSpeed;
				showSpeed = (showSpeed === 'normal' && $.ui &&
					parseInt($.ui.version.substring(2)) >= 8 ? '_default' : showSpeed);
				if ($.effects && ($.effects[showAnim] || ($.effects.effect && $.effects.effect[showAnim]))) {
					var data = inst.div.data(); // Update old effects data
					for (var key in data) {
						if (key.match(/^ec\.storage\./)) {
							data[key] = inst._mainDiv.css(key.replace(/ec\.storage\./, ''));
						}
					}
					inst.div.data(data).show(showAnim, inst.options.showOptions, showSpeed);
				}
				else {
					inst.div[showAnim || 'show'](showAnim ? showSpeed : 0);
				}
			}
		}
function(elem) {
			elem = $(elem.target || elem);
			var inst = plugin._getInst(elem);
			if (plugin.curInst === inst) {
				return;
			}
			if (plugin.curInst) {
				plugin.hide(plugin.curInst, true);
			}
			if (!$.isEmptyObject(inst)) {
				// Retrieve existing date(s)
				inst.lastVal = null;
				inst.selectedDates = plugin._extractDates(inst, elem.val());
				inst.pickingRange = false;
				inst.drawDate = plugin._checkMinMax((inst.selectedDates[0] ||
					inst.get('defaultDate') || inst.options.calendar.today()).newDate(), inst);
				inst.prevDate = inst.drawDate.newDate();
				plugin.curInst = inst;
				// Generate content
				plugin._update(elem[0], true);
				// Adjust position before showing
				var offset = plugin._checkOffset(inst);
				inst.div.css({left: offset.left, top: offset.top});
				// And display
				var showAnim = inst.options.showAnim;
				var showSpeed = inst.options.showSpeed;
				showSpeed = (showSpeed === 'normal' && $.ui &&
					parseInt($.ui.version.substring(2)) >= 8 ? '_default' : showSpeed);
				if ($.effects && ($.effects[showAnim] || ($.effects.effect && $.effects.effect[showAnim]))) {
					var data = inst.div.data(); // Update old effects data
					for (var key in data) {
						if (key.match(/^ec\.storage\./)) {
							data[key] = inst._mainDiv.css(key.replace(/ec\.storage\./, ''));
						}
					}
					inst.div.data(data).show(showAnim, inst.options.showOptions, showSpeed);
				}
				else {
					inst.div[showAnim || 'show'](showAnim ? showSpeed : 0);
				}
			}
		}
function ( elem ) { elem = $ ( elem . target || elem ) ; var inst = plugin . _getInst ( elem ) ; if ( plugin . curInst === inst ) { return ; } if ( plugin . curInst ) { plugin . hide ( plugin . curInst , true ) ; } if ( ! $ . isEmptyObject ( inst ) ) { // Retrieve existing date(s) inst . lastVal = null ; inst . selectedDates = plugin . _extractDates ( inst , elem . val ( ) ) ; inst . pickingRange = false ; inst . drawDate = plugin . _checkMinMax ( ( inst . selectedDates [ 0 ] || inst . get ( 'defaultDate' ) || inst . options . calendar . today ( ) ) . newDate ( ) , inst ) ; inst . prevDate = inst . drawDate . newDate ( ) ; plugin . curInst = inst ; // Generate content plugin . _update ( elem [ 0 ] , true ) ; // Adjust position before showing var offset = plugin . _checkOffset ( inst ) ; inst . div . css ( { left : offset . left , top : offset . top } ) ; // And display var showAnim = inst . options . showAnim ; var showSpeed = inst . options . showSpeed ; showSpeed = ( showSpeed === 'normal' && $ . ui && parseInt ( $ . ui . version . substring ( 2 ) ) >= 8 ? '_default' : showSpeed ) ; if ( $ . effects && ( $ . effects [ showAnim ] || ( $ . effects . effect && $ . effects . effect [ showAnim ] ) ) ) { var data = inst . div . data ( ) ; // Update old effects data for ( var key in data ) { if ( key . match ( / ^ec\.storage\. / ) ) { data [ key ] = inst . _mainDiv . css ( key . replace ( / ec\.storage\. / , '' ) ) ; } } inst . div . data ( data ) . show ( showAnim , inst . options . showOptions , showSpeed ) ; } else { inst . div [ showAnim || 'show' ] ( showAnim ? showSpeed : 0 ) ; } } }
Show a popup datepicker.
@memberof CalendarsPicker
@param elem {Event|Element} a focus event or the control to use.
@example $(selector).datepick('show')
Show a popup datepicker .