owsi-core/owsi-core-components/owsi-core-component-wicket-more/src/main/java/fr/openwide/core/wicket/more/markup/html/template/js/jquery/plugins/monthpicker/jquery.ui.monthpicker.js
/* Month picker manager.
	   Use the singleton instance of this class, $.monthpicker, to interact with the date picker.
	   Settings for (groups of) month pickers are maintained in an instance object,
	   allowing multiple different settings on the same page. */
Month picker manager.
Use the singleton instance of this class, $.monthpicker, to interact with the date picker.
Settings for (groups of) month pickers are maintained in an instance object,
allowing multiple different settings on the same page.
Month picker manager . Use the singleton instance of this class $ . monthpicker to interact with the date picker . Settings for ( groups of ) month pickers are maintained in an instance object allowing multiple different settings on the same page .
function Monthpicker() {
		this.uuid = 0;
		this._curInst = null; 
		this._disabledInputs = []; 
		this._monthpickerShowing = false; 
		this._mainDivId = 'ui-monthpicker-div'; 
		this._triggerClass = 'ui-monthpicker-trigger'; 
		this._dialogClass = 'ui-monthpicker-dialog'; 
		this.regional = []; 
		this.regional[''] = { 
			prevText: 'Prev', 
			nextText: 'Next', 
			monthNames: ['January','February','March','April','May','June',
				'July','August','September','October','November','December'], 
			monthNamesShort: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'], 
			dateFormat: 'mm/yy',
			yearSuffix: '' 
		};
		this._defaults = { 
			showOn: 'focus', 
			showAnim: 'fadeIn', 
			buttonText: '...', 
			buttonImage: '', 
			changeYear: false, 
			yearRange: 'c-10:c+10', 
			beforeShow: null, 
			onSelect: null, 
			onChangeYear: null, 
			onClose: null, 
			stepYears: 1, 
			altField: '', 
			altFormat: '', 
			disabled: false 
		};
		$.extend(this._defaults, this.regional['']);
		this.dpDiv = bindHover($('<div id="' + this._mainDivId + '" class="ui-datepicker ui-monthpicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all"></div>'));
	}
function Monthpicker ( ) { this . uuid = 0 ; this . _curInst = null ; this . _disabledInputs = [ ] ; this . _monthpickerShowing = false ; this . _mainDivId = 'ui-monthpicker-div' ; this . _triggerClass = 'ui-monthpicker-trigger' ; this . _dialogClass = 'ui-monthpicker-dialog' ; this . regional = [ ] ; this . regional [ '' ] = { prevText : 'Prev' , nextText : 'Next' , monthNames : [ 'January' , 'February' , 'March' , 'April' , 'May' , 'June' , 'July' , 'August' , 'September' , 'October' , 'November' , 'December' ] , monthNamesShort : [ 'Jan' , 'Feb' , 'Mar' , 'Apr' , 'May' , 'Jun' , 'Jul' , 'Aug' , 'Sep' , 'Oct' , 'Nov' , 'Dec' ] , dateFormat : 'mm/yy' , yearSuffix : '' } ; this . _defaults = { showOn : 'focus' , showAnim : 'fadeIn' , buttonText : '...' , buttonImage : '' , changeYear : false , yearRange : 'c-10:c+10' , beforeShow : null , onSelect : null , onChangeYear : null , onClose : null , stepYears : 1 , altField : '' , altFormat : '' , disabled : false } ; $ . extend ( this . _defaults , this . regional [ '' ] ) ; this . dpDiv = bindHover ( $ ( '<div id="' + this . _mainDivId + '" class="ui-datepicker ui-monthpicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all"></div>' ) ) ; }
Month picker manager.
Month picker manager .
// The current instance in use // List of date picker inputs that have been disabled // True if the popup picker is showing , false if not // The ID of the main monthpicker division // The name of the trigger marker class // The name of the dialog marker class // Available regional settings, indexed by language code // Default regional settings // Display text for previous month link // Display text for next month link // Names of months for drop-down and formatting // For formatting // Additional text to append to the year in the month headers // Global defaults for all the date picker instances // 'focus' for popup on focus, // 'button' for trigger button, or 'both' for either // Name of jQuery animation for popup // Text for trigger button // URL for trigger button image // True if year can be selected directly, false if only prev/next // Range of years to display in drop-down, // either relative to today's year (-nn:+nn), relative to currently displayed year // (c-nn:c+nn), absolute (nnnn:nnnn), or a combination of the above (nnnn:-n) // Function that takes an input field and // returns a set of custom settings for the date picker // Define a callback function when a date is selected // Define a callback function when the year is changed // Define a callback function when the monthpicker is closed // Number of months to step back/forward // Selector for an alternate field to store selected dates into // The date format to use for the alternate field // The initial disabled state