Subversion Repositories Sites.obs-saisons.fr

Rev

Rev 40 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 40 Rev 54
Line 1... Line 1...
1
/*
1
/*
2
 * jQuery UI Datepicker 1.8.5
2
 * jQuery UI Datepicker 1.8.6
3
 *
3
 *
4
 * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
4
 * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
5
 * Dual licensed under the MIT or GPL Version 2 licenses.
5
 * Dual licensed under the MIT or GPL Version 2 licenses.
6
 * http://jquery.org/license
6
 * http://jquery.org/license
7
 *
7
 *
Line 10... Line 10...
10
 * Depends:
10
 * Depends:
11
 *	jquery.ui.core.js
11
 *	jquery.ui.core.js
12
 */
12
 */
13
(function( $, undefined ) {
13
(function( $, undefined ) {
Line 14... Line 14...
14
 
14
 
Line 15... Line 15...
15
$.extend($.ui, { datepicker: { version: "1.8.5" } });
15
$.extend($.ui, { datepicker: { version: "1.8.6" } });
16
 
16
 
Line 17... Line 17...
17
var PROP_NAME = 'datepicker';
17
var PROP_NAME = 'datepicker';
Line 165... Line 165...
165
		}
165
		}
166
	},
166
	},
Line 167... Line 167...
167
 
167
 
168
	/* Create a new instance object. */
168
	/* Create a new instance object. */
169
	_newInst: function(target, inline) {
169
	_newInst: function(target, inline) {
170
		var id = target[0].id.replace(/([^A-Za-z0-9_])/g, '\\\\$1'); // escape jQuery meta chars
170
		var id = target[0].id.replace(/([^A-Za-z0-9_-])/g, '\\\\$1'); // escape jQuery meta chars
171
		return {id: id, input: target, // associated target
171
		return {id: id, input: target, // associated target
172
			selectedDay: 0, selectedMonth: 0, selectedYear: 0, // current selection
172
			selectedDay: 0, selectedMonth: 0, selectedYear: 0, // current selection
173
			drawMonth: 0, drawYear: 0, // month being drawn
173
			drawMonth: 0, drawYear: 0, // month being drawn
174
			inline: inline, // is datepicker inline or not
174
			inline: inline, // is datepicker inline or not
Line 1491... Line 1491...
1491
							(unselectable ? '' : ' onclick="DP_jQuery_' + dpuuid + '.datepicker._selectDay(\'#' +
1491
							(unselectable ? '' : ' onclick="DP_jQuery_' + dpuuid + '.datepicker._selectDay(\'#' +
1492
							inst.id + '\',' + printDate.getMonth() + ',' + printDate.getFullYear() + ', this);return false;"') + '>' + // actions
1492
							inst.id + '\',' + printDate.getMonth() + ',' + printDate.getFullYear() + ', this);return false;"') + '>' + // actions
1493
							(otherMonth && !showOtherMonths ? ' ' : // display for other months
1493
							(otherMonth && !showOtherMonths ? ' ' : // display for other months
1494
							(unselectable ? '<span class="ui-state-default">' + printDate.getDate() + '</span>' : '<a class="ui-state-default' +
1494
							(unselectable ? '<span class="ui-state-default">' + printDate.getDate() + '</span>' : '<a class="ui-state-default' +
1495
							(printDate.getTime() == today.getTime() ? ' ui-state-highlight' : '') +
1495
							(printDate.getTime() == today.getTime() ? ' ui-state-highlight' : '') +
1496
							(printDate.getTime() == selectedDate.getTime() ? ' ui-state-active' : '') + // highlight selected day
1496
							(printDate.getTime() == currentDate.getTime() ? ' ui-state-active' : '') + // highlight selected day
1497
							(otherMonth ? ' ui-priority-secondary' : '') + // distinguish dates from other months
1497
							(otherMonth ? ' ui-priority-secondary' : '') + // distinguish dates from other months
1498
							'" href="#">' + printDate.getDate() + '</a>')) + '</td>'; // display selectable date
1498
							'" href="#">' + printDate.getDate() + '</a>')) + '</td>'; // display selectable date
1499
						printDate.setDate(printDate.getDate() + 1);
1499
						printDate.setDate(printDate.getDate() + 1);
1500
						printDate = this._daylightSavingAdjust(printDate);
1500
						printDate = this._daylightSavingAdjust(printDate);
1501
					}
1501
					}
Line 1721... Line 1721...
1721
};
1721
};
Line 1722... Line 1722...
1722
 
1722
 
1723
$.datepicker = new Datepicker(); // singleton instance
1723
$.datepicker = new Datepicker(); // singleton instance
1724
$.datepicker.initialized = false;
1724
$.datepicker.initialized = false;
1725
$.datepicker.uuid = new Date().getTime();
1725
$.datepicker.uuid = new Date().getTime();
Line 1726... Line 1726...
1726
$.datepicker.version = "1.8.5";
1726
$.datepicker.version = "1.8.6";
1727
 
1727
 
1728
// Workaround for #4055
1728
// Workaround for #4055