|
|
@ -1,26 +1,18 @@ |
|
|
|
/* ========================================================= |
|
|
|
/*! |
|
|
|
* bootstrap-datepicker.js |
|
|
|
* Datepicker for Bootstrap v1.5.0 (https://github.com/eternicode/bootstrap-datepicker)
|
|
|
|
* Repo: https://github.com/eternicode/bootstrap-datepicker/
|
|
|
|
|
|
|
|
* Demo: http://eternicode.github.io/bootstrap-datepicker/
|
|
|
|
|
|
|
|
* Docs: http://bootstrap-datepicker.readthedocs.org/
|
|
|
|
|
|
|
|
* Forked from http://www.eyecon.ro/bootstrap-datepicker
|
|
|
|
|
|
|
|
* ========================================================= |
|
|
|
|
|
|
|
* Started by Stefan Petre; improvements by Andrew Rowls + contributors |
|
|
|
|
|
|
|
* |
|
|
|
* |
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
|
|
* Copyright 2012 Stefan Petre |
|
|
|
* you may not use this file except in compliance with the License. |
|
|
|
* Improvements by Andrew Rowls |
|
|
|
* You may obtain a copy of the License at |
|
|
|
* Licensed under the Apache License v2.0 (http://www.apache.org/licenses/LICENSE-2.0)
|
|
|
|
* |
|
|
|
*/(function(factory){ |
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
if (typeof define === "function" && define.amd) { |
|
|
|
* |
|
|
|
define(["jquery"], factory); |
|
|
|
* Unless required by applicable law or agreed to in writing, software |
|
|
|
} else if (typeof exports === 'object') { |
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS, |
|
|
|
factory(require('jquery')); |
|
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
|
|
} else { |
|
|
|
* See the License for the specific language governing permissions and |
|
|
|
factory(jQuery); |
|
|
|
* limitations under the License. |
|
|
|
} |
|
|
|
* ========================================================= */ |
|
|
|
}(function($, undefined){ |
|
|
|
|
|
|
|
|
|
|
|
(function($, undefined){ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function UTCDate(){ |
|
|
|
function UTCDate(){ |
|
|
|
return new Date(Date.UTC.apply(Date, arguments)); |
|
|
|
return new Date(Date.UTC.apply(Date, arguments)); |
|
|
@ -41,6 +33,9 @@ |
|
|
|
return this[method].apply(this, arguments); |
|
|
|
return this[method].apply(this, arguments); |
|
|
|
}; |
|
|
|
}; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
function isValidDate(d) { |
|
|
|
|
|
|
|
return d && !isNaN(d.getTime()); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
var DateArray = (function(){ |
|
|
|
var DateArray = (function(){ |
|
|
|
var extras = { |
|
|
|
var extras = { |
|
|
@ -131,6 +126,7 @@ |
|
|
|
this.setStartDate(this._o.startDate); |
|
|
|
this.setStartDate(this._o.startDate); |
|
|
|
this.setEndDate(this._o.endDate); |
|
|
|
this.setEndDate(this._o.endDate); |
|
|
|
this.setDaysOfWeekDisabled(this.o.daysOfWeekDisabled); |
|
|
|
this.setDaysOfWeekDisabled(this.o.daysOfWeekDisabled); |
|
|
|
|
|
|
|
this.setDaysOfWeekHighlighted(this.o.daysOfWeekHighlighted); |
|
|
|
this.setDatesDisabled(this.o.datesDisabled); |
|
|
|
this.setDatesDisabled(this.o.datesDisabled); |
|
|
|
|
|
|
|
|
|
|
|
this.fillDow(); |
|
|
|
this.fillDow(); |
|
|
@ -191,6 +187,20 @@ |
|
|
|
o.minViewMode = 0; |
|
|
|
o.minViewMode = 0; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
switch (o.maxViewMode) { |
|
|
|
|
|
|
|
case 0: |
|
|
|
|
|
|
|
case 'days': |
|
|
|
|
|
|
|
o.maxViewMode = 0; |
|
|
|
|
|
|
|
break; |
|
|
|
|
|
|
|
case 1: |
|
|
|
|
|
|
|
case 'months': |
|
|
|
|
|
|
|
o.maxViewMode = 1; |
|
|
|
|
|
|
|
break; |
|
|
|
|
|
|
|
default: |
|
|
|
|
|
|
|
o.maxViewMode = 2; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
o.startView = Math.min(o.startView, o.maxViewMode); |
|
|
|
o.startView = Math.max(o.startView, o.minViewMode); |
|
|
|
o.startView = Math.max(o.startView, o.minViewMode); |
|
|
|
|
|
|
|
|
|
|
|
// true, false, or Number > 0
|
|
|
|
// true, false, or Number > 0
|
|
|
@ -235,6 +245,13 @@ |
|
|
|
return parseInt(d, 10); |
|
|
|
return parseInt(d, 10); |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
o.daysOfWeekHighlighted = o.daysOfWeekHighlighted||[]; |
|
|
|
|
|
|
|
if (!$.isArray(o.daysOfWeekHighlighted)) |
|
|
|
|
|
|
|
o.daysOfWeekHighlighted = o.daysOfWeekHighlighted.split(/[,\s]*/); |
|
|
|
|
|
|
|
o.daysOfWeekHighlighted = $.map(o.daysOfWeekHighlighted, function(d){ |
|
|
|
|
|
|
|
return parseInt(d, 10); |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
o.datesDisabled = o.datesDisabled||[]; |
|
|
|
o.datesDisabled = o.datesDisabled||[]; |
|
|
|
if (!$.isArray(o.datesDisabled)) { |
|
|
|
if (!$.isArray(o.datesDisabled)) { |
|
|
|
var datesDisabled = []; |
|
|
|
var datesDisabled = []; |
|
|
@ -285,6 +302,7 @@ |
|
|
|
o.defaultViewDate = UTCToday(); |
|
|
|
o.defaultViewDate = UTCToday(); |
|
|
|
} |
|
|
|
} |
|
|
|
o.showOnFocus = o.showOnFocus !== undefined ? o.showOnFocus : true; |
|
|
|
o.showOnFocus = o.showOnFocus !== undefined ? o.showOnFocus : true; |
|
|
|
|
|
|
|
o.zIndexOffset = o.zIndexOffset !== undefined ? o.zIndexOffset : 10; |
|
|
|
}, |
|
|
|
}, |
|
|
|
_events: [], |
|
|
|
_events: [], |
|
|
|
_secondaryEvents: [], |
|
|
|
_secondaryEvents: [], |
|
|
@ -322,7 +340,8 @@ |
|
|
|
if ($.inArray(e.keyCode, [27, 37, 39, 38, 40, 32, 13, 9]) === -1) |
|
|
|
if ($.inArray(e.keyCode, [27, 37, 39, 38, 40, 32, 13, 9]) === -1) |
|
|
|
this.update(); |
|
|
|
this.update(); |
|
|
|
}, this), |
|
|
|
}, this), |
|
|
|
keydown: $.proxy(this.keydown, this) |
|
|
|
keydown: $.proxy(this.keydown, this), |
|
|
|
|
|
|
|
paste: $.proxy(this.paste, this) |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
if (this.o.showOnFocus === true) { |
|
|
|
if (this.o.showOnFocus === true) { |
|
|
@ -368,6 +387,15 @@ |
|
|
|
}] |
|
|
|
}] |
|
|
|
); |
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (this.o.immediateUpdates) { |
|
|
|
|
|
|
|
// Trigger input updates immediately on changed year/month
|
|
|
|
|
|
|
|
this._events.push([this.element, { |
|
|
|
|
|
|
|
'changeYear changeMonth': $.proxy(function(e){ |
|
|
|
|
|
|
|
this.update(e.date); |
|
|
|
|
|
|
|
}, this) |
|
|
|
|
|
|
|
}]); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
this._secondaryEvents = [ |
|
|
|
this._secondaryEvents = [ |
|
|
|
[this.picker, { |
|
|
|
[this.picker, { |
|
|
|
click: $.proxy(this.click, this) |
|
|
|
click: $.proxy(this.click, this) |
|
|
@ -376,13 +404,14 @@ |
|
|
|
resize: $.proxy(this.place, this) |
|
|
|
resize: $.proxy(this.place, this) |
|
|
|
}], |
|
|
|
}], |
|
|
|
[$(document), { |
|
|
|
[$(document), { |
|
|
|
'mousedown touchstart': $.proxy(function(e){ |
|
|
|
mousedown: $.proxy(function(e){ |
|
|
|
// Clicked outside the datepicker, hide it
|
|
|
|
// Clicked outside the datepicker, hide it
|
|
|
|
if (!( |
|
|
|
if (!( |
|
|
|
this.element.is(e.target) || |
|
|
|
this.element.is(e.target) || |
|
|
|
this.element.find(e.target).length || |
|
|
|
this.element.find(e.target).length || |
|
|
|
this.picker.is(e.target) || |
|
|
|
this.picker.is(e.target) || |
|
|
|
this.picker.find(e.target).length |
|
|
|
this.picker.find(e.target).length || |
|
|
|
|
|
|
|
this.picker.hasClass('datepicker-inline') |
|
|
|
)){ |
|
|
|
)){ |
|
|
|
this.hide(); |
|
|
|
this.hide(); |
|
|
|
} |
|
|
|
} |
|
|
@ -478,6 +507,23 @@ |
|
|
|
return this; |
|
|
|
return this; |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
paste: function(evt){ |
|
|
|
|
|
|
|
var dateString; |
|
|
|
|
|
|
|
if (evt.originalEvent.clipboardData && evt.originalEvent.clipboardData.types |
|
|
|
|
|
|
|
&& $.inArray('text/plain', evt.originalEvent.clipboardData.types) !== -1) { |
|
|
|
|
|
|
|
dateString = evt.originalEvent.clipboardData.getData('text/plain'); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
else if (window.clipboardData) { |
|
|
|
|
|
|
|
dateString = window.clipboardData.getData('Text'); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
else { |
|
|
|
|
|
|
|
return; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
this.setDate(dateString); |
|
|
|
|
|
|
|
this.update(); |
|
|
|
|
|
|
|
evt.preventDefault(); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
_utc_to_local: function(utc){ |
|
|
|
_utc_to_local: function(utc){ |
|
|
|
return utc && new Date(utc.getTime() + (utc.getTimezoneOffset()*60000)); |
|
|
|
return utc && new Date(utc.getTime() + (utc.getTimezoneOffset()*60000)); |
|
|
|
}, |
|
|
|
}, |
|
|
@ -523,7 +569,7 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (element) { |
|
|
|
if (element) { |
|
|
|
element.val('').change(); |
|
|
|
element.val(''); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
this.update(); |
|
|
|
this.update(); |
|
|
@ -556,11 +602,11 @@ |
|
|
|
var formatted = this.getFormattedDate(); |
|
|
|
var formatted = this.getFormattedDate(); |
|
|
|
if (!this.isInput){ |
|
|
|
if (!this.isInput){ |
|
|
|
if (this.component){ |
|
|
|
if (this.component){ |
|
|
|
this.element.find('input').val(formatted).change(); |
|
|
|
this.element.find('input').val(formatted); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
else { |
|
|
|
else { |
|
|
|
this.element.val(formatted).change(); |
|
|
|
this.element.val(formatted); |
|
|
|
} |
|
|
|
} |
|
|
|
return this; |
|
|
|
return this; |
|
|
|
}, |
|
|
|
}, |
|
|
@ -596,6 +642,12 @@ |
|
|
|
return this; |
|
|
|
return this; |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
setDaysOfWeekHighlighted: function(daysOfWeekHighlighted){ |
|
|
|
|
|
|
|
this._process_options({daysOfWeekHighlighted: daysOfWeekHighlighted}); |
|
|
|
|
|
|
|
this.update(); |
|
|
|
|
|
|
|
return this; |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
setDatesDisabled: function(datesDisabled){ |
|
|
|
setDatesDisabled: function(datesDisabled){ |
|
|
|
this._process_options({datesDisabled: datesDisabled}); |
|
|
|
this._process_options({datesDisabled: datesDisabled}); |
|
|
|
this.update(); |
|
|
|
this.update(); |
|
|
@ -608,17 +660,17 @@ |
|
|
|
var calendarWidth = this.picker.outerWidth(), |
|
|
|
var calendarWidth = this.picker.outerWidth(), |
|
|
|
calendarHeight = this.picker.outerHeight(), |
|
|
|
calendarHeight = this.picker.outerHeight(), |
|
|
|
visualPadding = 10, |
|
|
|
visualPadding = 10, |
|
|
|
windowWidth = $(this.o.container).width(), |
|
|
|
container = $(this.o.container), |
|
|
|
windowHeight = $(this.o.container).height(), |
|
|
|
windowWidth = container.width(), |
|
|
|
scrollTop = $(this.o.container).scrollTop(), |
|
|
|
scrollTop = container.scrollTop(), |
|
|
|
appendOffset = $(this.o.container).offset(); |
|
|
|
appendOffset = container.offset(); |
|
|
|
|
|
|
|
|
|
|
|
var parentsZindex = []; |
|
|
|
var parentsZindex = []; |
|
|
|
this.element.parents().each(function(){ |
|
|
|
this.element.parents().each(function(){ |
|
|
|
var itemZIndex = $(this).css('z-index'); |
|
|
|
var itemZIndex = $(this).css('z-index'); |
|
|
|
if (itemZIndex !== 'auto' && itemZIndex !== 0) parentsZindex.push(parseInt(itemZIndex)); |
|
|
|
if (itemZIndex !== 'auto' && itemZIndex !== 0) parentsZindex.push(parseInt(itemZIndex)); |
|
|
|
}); |
|
|
|
}); |
|
|
|
var zIndex = Math.max.apply(Math, parentsZindex) + 10; |
|
|
|
var zIndex = Math.max.apply(Math, parentsZindex) + this.o.zIndexOffset; |
|
|
|
var offset = this.component ? this.component.parent().offset() : this.element.offset(); |
|
|
|
var offset = this.component ? this.component.parent().offset() : this.element.offset(); |
|
|
|
var height = this.component ? this.component.outerHeight(true) : this.element.outerHeight(false); |
|
|
|
var height = this.component ? this.component.outerHeight(true) : this.element.outerHeight(false); |
|
|
|
var width = this.component ? this.component.outerWidth(true) : this.element.outerWidth(false); |
|
|
|
var width = this.component ? this.component.outerWidth(true) : this.element.outerWidth(false); |
|
|
@ -655,20 +707,17 @@ |
|
|
|
// auto y orientation is best-situation: top or bottom, no fudging,
|
|
|
|
// auto y orientation is best-situation: top or bottom, no fudging,
|
|
|
|
// decision based on which shows more of the calendar
|
|
|
|
// decision based on which shows more of the calendar
|
|
|
|
var yorient = this.o.orientation.y, |
|
|
|
var yorient = this.o.orientation.y, |
|
|
|
top_overflow, bottom_overflow; |
|
|
|
top_overflow; |
|
|
|
if (yorient === 'auto'){ |
|
|
|
if (yorient === 'auto'){ |
|
|
|
top_overflow = -scrollTop + top - calendarHeight; |
|
|
|
top_overflow = -scrollTop + top - calendarHeight; |
|
|
|
bottom_overflow = scrollTop + windowHeight - (top + height + calendarHeight); |
|
|
|
yorient = top_overflow < 0 ? 'bottom' : 'top'; |
|
|
|
if (Math.max(top_overflow, bottom_overflow) === bottom_overflow) |
|
|
|
|
|
|
|
yorient = 'top'; |
|
|
|
|
|
|
|
else |
|
|
|
|
|
|
|
yorient = 'bottom'; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
this.picker.addClass('datepicker-orient-' + yorient); |
|
|
|
this.picker.addClass('datepicker-orient-' + yorient); |
|
|
|
if (yorient === 'top') |
|
|
|
if (yorient === 'top') |
|
|
|
top += height; |
|
|
|
|
|
|
|
else |
|
|
|
|
|
|
|
top -= calendarHeight + parseInt(this.picker.css('padding-top')); |
|
|
|
top -= calendarHeight + parseInt(this.picker.css('padding-top')); |
|
|
|
|
|
|
|
else |
|
|
|
|
|
|
|
top += height; |
|
|
|
|
|
|
|
|
|
|
|
if (this.o.rtl) { |
|
|
|
if (this.o.rtl) { |
|
|
|
var right = windowWidth - (left + width); |
|
|
|
var right = windowWidth - (left + width); |
|
|
@ -732,6 +781,8 @@ |
|
|
|
this.viewDate = new Date(this.o.startDate); |
|
|
|
this.viewDate = new Date(this.o.startDate); |
|
|
|
else if (this.viewDate > this.o.endDate) |
|
|
|
else if (this.viewDate > this.o.endDate) |
|
|
|
this.viewDate = new Date(this.o.endDate); |
|
|
|
this.viewDate = new Date(this.o.endDate); |
|
|
|
|
|
|
|
else |
|
|
|
|
|
|
|
this.viewDate = this.o.defaultViewDate; |
|
|
|
|
|
|
|
|
|
|
|
if (fromArgs){ |
|
|
|
if (fromArgs){ |
|
|
|
// setting date by clicking
|
|
|
|
// setting date by clicking
|
|
|
@ -746,6 +797,7 @@ |
|
|
|
this._trigger('clearDate'); |
|
|
|
this._trigger('clearDate'); |
|
|
|
|
|
|
|
|
|
|
|
this.fill(); |
|
|
|
this.fill(); |
|
|
|
|
|
|
|
this.element.change(); |
|
|
|
return this; |
|
|
|
return this; |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
@ -753,12 +805,11 @@ |
|
|
|
var dowCnt = this.o.weekStart, |
|
|
|
var dowCnt = this.o.weekStart, |
|
|
|
html = '<tr>'; |
|
|
|
html = '<tr>'; |
|
|
|
if (this.o.calendarWeeks){ |
|
|
|
if (this.o.calendarWeeks){ |
|
|
|
this.picker.find('.datepicker-days thead tr:first-child .datepicker-switch') |
|
|
|
this.picker.find('.datepicker-days .datepicker-switch') |
|
|
|
.attr('colspan', function(i, val){ |
|
|
|
.attr('colspan', function(i, val){ |
|
|
|
return parseInt(val) + 1; |
|
|
|
return parseInt(val) + 1; |
|
|
|
}); |
|
|
|
}); |
|
|
|
var cell = '<th class="cw"> </th>'; |
|
|
|
html += '<th class="cw"> </th>'; |
|
|
|
html += cell; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
while (dowCnt < this.o.weekStart + 7){ |
|
|
|
while (dowCnt < this.o.weekStart + 7){ |
|
|
|
html += '<th class="dow">'+dates[this.o.language].daysMin[(dowCnt++)%7]+'</th>'; |
|
|
|
html += '<th class="dow">'+dates[this.o.language].daysMin[(dowCnt++)%7]+'</th>'; |
|
|
@ -812,6 +863,9 @@ |
|
|
|
$.inArray(date.getUTCDay(), this.o.daysOfWeekDisabled) !== -1){ |
|
|
|
$.inArray(date.getUTCDay(), this.o.daysOfWeekDisabled) !== -1){ |
|
|
|
cls.push('disabled'); |
|
|
|
cls.push('disabled'); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if ($.inArray(date.getUTCDay(), this.o.daysOfWeekHighlighted) !== -1){ |
|
|
|
|
|
|
|
cls.push('highlighted'); |
|
|
|
|
|
|
|
} |
|
|
|
if (this.o.datesDisabled.length > 0 && |
|
|
|
if (this.o.datesDisabled.length > 0 && |
|
|
|
$.grep(this.o.datesDisabled, function(d){ |
|
|
|
$.grep(this.o.datesDisabled, function(d){ |
|
|
|
return isUTCEquals(date, d); }).length > 0) { |
|
|
|
return isUTCEquals(date, d); }).length > 0) { |
|
|
@ -825,6 +879,12 @@ |
|
|
|
if ($.inArray(date.valueOf(), this.range) !== -1){ |
|
|
|
if ($.inArray(date.valueOf(), this.range) !== -1){ |
|
|
|
cls.push('selected'); |
|
|
|
cls.push('selected'); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if (date.valueOf() === this.range[0]){ |
|
|
|
|
|
|
|
cls.push('range-start'); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if (date.valueOf() === this.range[this.range.length-1]){ |
|
|
|
|
|
|
|
cls.push('range-end'); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
return cls; |
|
|
|
return cls; |
|
|
|
}, |
|
|
|
}, |
|
|
@ -839,17 +899,21 @@ |
|
|
|
endMonth = this.o.endDate !== Infinity ? this.o.endDate.getUTCMonth() : Infinity, |
|
|
|
endMonth = this.o.endDate !== Infinity ? this.o.endDate.getUTCMonth() : Infinity, |
|
|
|
todaytxt = dates[this.o.language].today || dates['en'].today || '', |
|
|
|
todaytxt = dates[this.o.language].today || dates['en'].today || '', |
|
|
|
cleartxt = dates[this.o.language].clear || dates['en'].clear || '', |
|
|
|
cleartxt = dates[this.o.language].clear || dates['en'].clear || '', |
|
|
|
|
|
|
|
titleFormat = dates[this.o.language].titleFormat || dates['en'].titleFormat, |
|
|
|
tooltip; |
|
|
|
tooltip; |
|
|
|
if (isNaN(year) || isNaN(month)) |
|
|
|
if (isNaN(year) || isNaN(month)) |
|
|
|
return; |
|
|
|
return; |
|
|
|
this.picker.find('.datepicker-days thead .datepicker-switch') |
|
|
|
this.picker.find('.datepicker-days thead .datepicker-switch') |
|
|
|
.text(dates[this.o.language].months[month]+' '+year); |
|
|
|
.text(DPGlobal.formatDate(new UTCDate(year, month), titleFormat, this.o.language)); |
|
|
|
this.picker.find('tfoot .today') |
|
|
|
this.picker.find('tfoot .today') |
|
|
|
.text(todaytxt) |
|
|
|
.text(todaytxt) |
|
|
|
.toggle(this.o.todayBtn !== false); |
|
|
|
.toggle(this.o.todayBtn !== false); |
|
|
|
this.picker.find('tfoot .clear') |
|
|
|
this.picker.find('tfoot .clear') |
|
|
|
.text(cleartxt) |
|
|
|
.text(cleartxt) |
|
|
|
.toggle(this.o.clearBtn !== false); |
|
|
|
.toggle(this.o.clearBtn !== false); |
|
|
|
|
|
|
|
this.picker.find('thead .datepicker-title') |
|
|
|
|
|
|
|
.text(this.o.title) |
|
|
|
|
|
|
|
.toggle(this.o.title !== ''); |
|
|
|
this.updateNavArrows(); |
|
|
|
this.updateNavArrows(); |
|
|
|
this.fillMonths(); |
|
|
|
this.fillMonths(); |
|
|
|
var prevMonth = UTCDate(year, month-1, 28), |
|
|
|
var prevMonth = UTCDate(year, month-1, 28), |
|
|
@ -857,6 +921,9 @@ |
|
|
|
prevMonth.setUTCDate(day); |
|
|
|
prevMonth.setUTCDate(day); |
|
|
|
prevMonth.setUTCDate(day - (prevMonth.getUTCDay() - this.o.weekStart + 7)%7); |
|
|
|
prevMonth.setUTCDate(day - (prevMonth.getUTCDay() - this.o.weekStart + 7)%7); |
|
|
|
var nextMonth = new Date(prevMonth); |
|
|
|
var nextMonth = new Date(prevMonth); |
|
|
|
|
|
|
|
if (prevMonth.getUTCFullYear() < 100){ |
|
|
|
|
|
|
|
nextMonth.setUTCFullYear(prevMonth.getUTCFullYear()); |
|
|
|
|
|
|
|
} |
|
|
|
nextMonth.setUTCDate(nextMonth.getUTCDate() + 42); |
|
|
|
nextMonth.setUTCDate(nextMonth.getUTCDate() + 42); |
|
|
|
nextMonth = nextMonth.valueOf(); |
|
|
|
nextMonth = nextMonth.valueOf(); |
|
|
|
var html = []; |
|
|
|
var html = []; |
|
|
@ -910,8 +977,8 @@ |
|
|
|
this.picker.find('.datepicker-days tbody').empty().append(html.join('')); |
|
|
|
this.picker.find('.datepicker-days tbody').empty().append(html.join('')); |
|
|
|
|
|
|
|
|
|
|
|
var months = this.picker.find('.datepicker-months') |
|
|
|
var months = this.picker.find('.datepicker-months') |
|
|
|
.find('th:eq(1)') |
|
|
|
.find('.datepicker-switch') |
|
|
|
.text(year) |
|
|
|
.text(this.o.maxViewMode < 2 ? 'Months' : year) |
|
|
|
.end() |
|
|
|
.end() |
|
|
|
.find('span').removeClass('active'); |
|
|
|
.find('span').removeClass('active'); |
|
|
|
|
|
|
|
|
|
|
@ -945,7 +1012,7 @@ |
|
|
|
html = ''; |
|
|
|
html = ''; |
|
|
|
year = parseInt(year/10, 10) * 10; |
|
|
|
year = parseInt(year/10, 10) * 10; |
|
|
|
var yearCont = this.picker.find('.datepicker-years') |
|
|
|
var yearCont = this.picker.find('.datepicker-years') |
|
|
|
.find('th:eq(1)') |
|
|
|
.find('.datepicker-switch') |
|
|
|
.text(year + '-' + (year + 9)) |
|
|
|
.text(year + '-' + (year + 9)) |
|
|
|
.end() |
|
|
|
.end() |
|
|
|
.find('td'); |
|
|
|
.find('td'); |
|
|
@ -956,6 +1023,8 @@ |
|
|
|
classes; |
|
|
|
classes; |
|
|
|
for (var i = -1; i < 11; i++){ |
|
|
|
for (var i = -1; i < 11; i++){ |
|
|
|
classes = ['year']; |
|
|
|
classes = ['year']; |
|
|
|
|
|
|
|
tooltip = null; |
|
|
|
|
|
|
|
|
|
|
|
if (i === -1) |
|
|
|
if (i === -1) |
|
|
|
classes.push('old'); |
|
|
|
classes.push('old'); |
|
|
|
else if (i === 10) |
|
|
|
else if (i === 10) |
|
|
@ -964,7 +1033,24 @@ |
|
|
|
classes.push('active'); |
|
|
|
classes.push('active'); |
|
|
|
if (year < startYear || year > endYear) |
|
|
|
if (year < startYear || year > endYear) |
|
|
|
classes.push('disabled'); |
|
|
|
classes.push('disabled'); |
|
|
|
html += '<span class="' + classes.join(' ') + '">' + year + '</span>'; |
|
|
|
|
|
|
|
|
|
|
|
if (this.o.beforeShowYear !== $.noop) { |
|
|
|
|
|
|
|
var yrBefore = this.o.beforeShowYear(new Date(year, 0, 1)); |
|
|
|
|
|
|
|
if (yrBefore === undefined) |
|
|
|
|
|
|
|
yrBefore = {}; |
|
|
|
|
|
|
|
else if (typeof(yrBefore) === 'boolean') |
|
|
|
|
|
|
|
yrBefore = {enabled: yrBefore}; |
|
|
|
|
|
|
|
else if (typeof(yrBefore) === 'string') |
|
|
|
|
|
|
|
yrBefore = {classes: yrBefore}; |
|
|
|
|
|
|
|
if (yrBefore.enabled === false) |
|
|
|
|
|
|
|
classes.push('disabled'); |
|
|
|
|
|
|
|
if (yrBefore.classes) |
|
|
|
|
|
|
|
classes = classes.concat(yrBefore.classes.split(/\s+/)); |
|
|
|
|
|
|
|
if (yrBefore.tooltip) |
|
|
|
|
|
|
|
tooltip = yrBefore.tooltip; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
html += '<span class="' + classes.join(' ') + '"' + (tooltip ? ' title="'+tooltip+'"' : '') + '>' + year + '</span>'; |
|
|
|
year += 1; |
|
|
|
year += 1; |
|
|
|
} |
|
|
|
} |
|
|
|
yearCont.html(html); |
|
|
|
yearCont.html(html); |
|
|
@ -994,13 +1080,13 @@ |
|
|
|
break; |
|
|
|
break; |
|
|
|
case 1: |
|
|
|
case 1: |
|
|
|
case 2: |
|
|
|
case 2: |
|
|
|
if (this.o.startDate !== -Infinity && year <= this.o.startDate.getUTCFullYear()){ |
|
|
|
if (this.o.startDate !== -Infinity && year <= this.o.startDate.getUTCFullYear() || this.o.maxViewMode < 2){ |
|
|
|
this.picker.find('.prev').css({visibility: 'hidden'}); |
|
|
|
this.picker.find('.prev').css({visibility: 'hidden'}); |
|
|
|
} |
|
|
|
} |
|
|
|
else { |
|
|
|
else { |
|
|
|
this.picker.find('.prev').css({visibility: 'visible'}); |
|
|
|
this.picker.find('.prev').css({visibility: 'visible'}); |
|
|
|
} |
|
|
|
} |
|
|
|
if (this.o.endDate !== Infinity && year >= this.o.endDate.getUTCFullYear()){ |
|
|
|
if (this.o.endDate !== Infinity && year >= this.o.endDate.getUTCFullYear() || this.o.maxViewMode < 2){ |
|
|
|
this.picker.find('.next').css({visibility: 'hidden'}); |
|
|
|
this.picker.find('.next').css({visibility: 'hidden'}); |
|
|
|
} |
|
|
|
} |
|
|
|
else { |
|
|
|
else { |
|
|
@ -1012,6 +1098,7 @@ |
|
|
|
|
|
|
|
|
|
|
|
click: function(e){ |
|
|
|
click: function(e){ |
|
|
|
e.preventDefault(); |
|
|
|
e.preventDefault(); |
|
|
|
|
|
|
|
e.stopPropagation(); |
|
|
|
var target = $(e.target).closest('span, td, th'), |
|
|
|
var target = $(e.target).closest('span, td, th'), |
|
|
|
year, month, day; |
|
|
|
year, month, day; |
|
|
|
if (target.length === 1){ |
|
|
|
if (target.length === 1){ |
|
|
@ -1062,6 +1149,9 @@ |
|
|
|
this._trigger('changeMonth', this.viewDate); |
|
|
|
this._trigger('changeMonth', this.viewDate); |
|
|
|
if (this.o.minViewMode === 1){ |
|
|
|
if (this.o.minViewMode === 1){ |
|
|
|
this._setDate(UTCDate(year, month, day)); |
|
|
|
this._setDate(UTCDate(year, month, day)); |
|
|
|
|
|
|
|
this.showMode(); |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
this.showMode(-1); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
else { |
|
|
|
else { |
|
|
@ -1073,8 +1163,8 @@ |
|
|
|
if (this.o.minViewMode === 2){ |
|
|
|
if (this.o.minViewMode === 2){ |
|
|
|
this._setDate(UTCDate(year, month, day)); |
|
|
|
this._setDate(UTCDate(year, month, day)); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
this.showMode(-1); |
|
|
|
this.showMode(-1); |
|
|
|
|
|
|
|
} |
|
|
|
this.fill(); |
|
|
|
this.fill(); |
|
|
|
} |
|
|
|
} |
|
|
|
break; |
|
|
|
break; |
|
|
@ -1162,8 +1252,8 @@ |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
moveMonth: function(date, dir){ |
|
|
|
moveMonth: function(date, dir){ |
|
|
|
if (!date) |
|
|
|
if (!isValidDate(date)) |
|
|
|
return undefined; |
|
|
|
return this.o.defaultViewDate; |
|
|
|
if (!dir) |
|
|
|
if (!dir) |
|
|
|
return date; |
|
|
|
return date; |
|
|
|
var new_date = new Date(date.valueOf()), |
|
|
|
var new_date = new Date(date.valueOf()), |
|
|
@ -1221,8 +1311,10 @@ |
|
|
|
|
|
|
|
|
|
|
|
keydown: function(e){ |
|
|
|
keydown: function(e){ |
|
|
|
if (!this.picker.is(':visible')){ |
|
|
|
if (!this.picker.is(':visible')){ |
|
|
|
if (e.keyCode === 27) // allow escape to hide and re-show picker
|
|
|
|
if (e.keyCode === 40 || e.keyCode === 27) { // allow down to re-show picker
|
|
|
|
this.show(); |
|
|
|
this.show(); |
|
|
|
|
|
|
|
e.stopPropagation(); |
|
|
|
|
|
|
|
} |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
var dateChanged = false, |
|
|
|
var dateChanged = false, |
|
|
@ -1238,6 +1330,7 @@ |
|
|
|
else |
|
|
|
else |
|
|
|
this.hide(); |
|
|
|
this.hide(); |
|
|
|
e.preventDefault(); |
|
|
|
e.preventDefault(); |
|
|
|
|
|
|
|
e.stopPropagation(); |
|
|
|
break; |
|
|
|
break; |
|
|
|
case 37: // left
|
|
|
|
case 37: // left
|
|
|
|
case 39: // right
|
|
|
|
case 39: // right
|
|
|
@ -1300,6 +1393,9 @@ |
|
|
|
// As such, its behavior should not be hijacked.
|
|
|
|
// As such, its behavior should not be hijacked.
|
|
|
|
break; |
|
|
|
break; |
|
|
|
case 13: // enter
|
|
|
|
case 13: // enter
|
|
|
|
|
|
|
|
if (!this.o.forceParse) { |
|
|
|
|
|
|
|
break; |
|
|
|
|
|
|
|
} |
|
|
|
focusDate = this.focusDate || this.dates.get(-1) || this.viewDate; |
|
|
|
focusDate = this.focusDate || this.dates.get(-1) || this.viewDate; |
|
|
|
if (this.o.keyboardNavigation) { |
|
|
|
if (this.o.keyboardNavigation) { |
|
|
|
this._toggle_multidate(focusDate); |
|
|
|
this._toggle_multidate(focusDate); |
|
|
@ -1347,13 +1443,13 @@ |
|
|
|
|
|
|
|
|
|
|
|
showMode: function(dir){ |
|
|
|
showMode: function(dir){ |
|
|
|
if (dir){ |
|
|
|
if (dir){ |
|
|
|
this.viewMode = Math.max(this.o.minViewMode, Math.min(2, this.viewMode + dir)); |
|
|
|
this.viewMode = Math.max(this.o.minViewMode, Math.min(this.o.maxViewMode, this.viewMode + dir)); |
|
|
|
} |
|
|
|
} |
|
|
|
this.picker |
|
|
|
this.picker |
|
|
|
.children('div') |
|
|
|
.children('div') |
|
|
|
.hide() |
|
|
|
.hide() |
|
|
|
.filter('.datepicker-' + DPGlobal.modes[this.viewMode].clsName) |
|
|
|
.filter('.datepicker-' + DPGlobal.modes[this.viewMode].clsName) |
|
|
|
.css('display', 'block'); |
|
|
|
.show(); |
|
|
|
this.updateNavArrows(); |
|
|
|
this.updateNavArrows(); |
|
|
|
} |
|
|
|
} |
|
|
|
}; |
|
|
|
}; |
|
|
@ -1366,7 +1462,7 @@ |
|
|
|
delete options.inputs; |
|
|
|
delete options.inputs; |
|
|
|
|
|
|
|
|
|
|
|
datepickerPlugin.call($(this.inputs), options) |
|
|
|
datepickerPlugin.call($(this.inputs), options) |
|
|
|
.bind('changeDate', $.proxy(this.dateUpdated, this)); |
|
|
|
.on('changeDate', $.proxy(this.dateUpdated, this)); |
|
|
|
|
|
|
|
|
|
|
|
this.pickers = $.map(this.inputs, function(i){ |
|
|
|
this.pickers = $.map(this.inputs, function(i){ |
|
|
|
return $(i).data('datepicker'); |
|
|
|
return $(i).data('datepicker'); |
|
|
@ -1396,8 +1492,13 @@ |
|
|
|
return; |
|
|
|
return; |
|
|
|
this.updating = true; |
|
|
|
this.updating = true; |
|
|
|
|
|
|
|
|
|
|
|
var dp = $(e.target).data('datepicker'), |
|
|
|
var dp = $(e.target).data('datepicker'); |
|
|
|
new_date = dp.getUTCDate(), |
|
|
|
|
|
|
|
|
|
|
|
if (typeof(dp) === "undefined") { |
|
|
|
|
|
|
|
return; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var new_date = dp.getUTCDate(), |
|
|
|
i = $.inArray(e.target, this.inputs), |
|
|
|
i = $.inArray(e.target, this.inputs), |
|
|
|
j = i - 1, |
|
|
|
j = i - 1, |
|
|
|
k = i + 1, |
|
|
|
k = i + 1, |
|
|
@ -1495,14 +1596,20 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
if (typeof option === 'string' && typeof data[option] === 'function'){ |
|
|
|
if (typeof option === 'string' && typeof data[option] === 'function'){ |
|
|
|
internal_return = data[option].apply(data, args); |
|
|
|
internal_return = data[option].apply(data, args); |
|
|
|
if (internal_return !== undefined) |
|
|
|
|
|
|
|
return false; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
if (internal_return !== undefined) |
|
|
|
|
|
|
|
return internal_return; |
|
|
|
if ( |
|
|
|
else |
|
|
|
internal_return === undefined || |
|
|
|
|
|
|
|
internal_return instanceof Datepicker || |
|
|
|
|
|
|
|
internal_return instanceof DateRangePicker |
|
|
|
|
|
|
|
) |
|
|
|
return this; |
|
|
|
return this; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (this.length > 1) |
|
|
|
|
|
|
|
throw new Error('Using only allowed for the collection of a single element (' + option + ' function)'); |
|
|
|
|
|
|
|
else |
|
|
|
|
|
|
|
return internal_return; |
|
|
|
}; |
|
|
|
}; |
|
|
|
$.fn.datepicker = datepickerPlugin; |
|
|
|
$.fn.datepicker = datepickerPlugin; |
|
|
|
|
|
|
|
|
|
|
@ -1510,10 +1617,12 @@ |
|
|
|
autoclose: false, |
|
|
|
autoclose: false, |
|
|
|
beforeShowDay: $.noop, |
|
|
|
beforeShowDay: $.noop, |
|
|
|
beforeShowMonth: $.noop, |
|
|
|
beforeShowMonth: $.noop, |
|
|
|
|
|
|
|
beforeShowYear: $.noop, |
|
|
|
calendarWeeks: false, |
|
|
|
calendarWeeks: false, |
|
|
|
clearBtn: false, |
|
|
|
clearBtn: false, |
|
|
|
toggleActive: false, |
|
|
|
toggleActive: false, |
|
|
|
daysOfWeekDisabled: [], |
|
|
|
daysOfWeekDisabled: [], |
|
|
|
|
|
|
|
daysOfWeekHighlighted: [], |
|
|
|
datesDisabled: [], |
|
|
|
datesDisabled: [], |
|
|
|
endDate: Infinity, |
|
|
|
endDate: Infinity, |
|
|
|
forceParse: true, |
|
|
|
forceParse: true, |
|
|
@ -1521,6 +1630,7 @@ |
|
|
|
keyboardNavigation: true, |
|
|
|
keyboardNavigation: true, |
|
|
|
language: 'en', |
|
|
|
language: 'en', |
|
|
|
minViewMode: 0, |
|
|
|
minViewMode: 0, |
|
|
|
|
|
|
|
maxViewMode: 2, |
|
|
|
multidate: false, |
|
|
|
multidate: false, |
|
|
|
multidateSeparator: ',', |
|
|
|
multidateSeparator: ',', |
|
|
|
orientation: "auto", |
|
|
|
orientation: "auto", |
|
|
@ -1532,7 +1642,9 @@ |
|
|
|
weekStart: 0, |
|
|
|
weekStart: 0, |
|
|
|
disableTouchKeyboard: false, |
|
|
|
disableTouchKeyboard: false, |
|
|
|
enableOnReadonly: true, |
|
|
|
enableOnReadonly: true, |
|
|
|
container: 'body' |
|
|
|
container: 'body', |
|
|
|
|
|
|
|
immediateUpdates: false, |
|
|
|
|
|
|
|
title: '' |
|
|
|
}; |
|
|
|
}; |
|
|
|
var locale_opts = $.fn.datepicker.locale_opts = [ |
|
|
|
var locale_opts = $.fn.datepicker.locale_opts = [ |
|
|
|
'format', |
|
|
|
'format', |
|
|
@ -1542,13 +1654,14 @@ |
|
|
|
$.fn.datepicker.Constructor = Datepicker; |
|
|
|
$.fn.datepicker.Constructor = Datepicker; |
|
|
|
var dates = $.fn.datepicker.dates = { |
|
|
|
var dates = $.fn.datepicker.dates = { |
|
|
|
en: { |
|
|
|
en: { |
|
|
|
days: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"], |
|
|
|
days: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], |
|
|
|
daysShort: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"], |
|
|
|
daysShort: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], |
|
|
|
daysMin: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa", "Su"], |
|
|
|
daysMin: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], |
|
|
|
months: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"], |
|
|
|
months: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"], |
|
|
|
monthsShort: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], |
|
|
|
monthsShort: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], |
|
|
|
today: "Today", |
|
|
|
today: "Today", |
|
|
|
clear: "Clear" |
|
|
|
clear: "Clear", |
|
|
|
|
|
|
|
titleFormat: "MM yyyy" |
|
|
|
} |
|
|
|
} |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
@ -1578,6 +1691,8 @@ |
|
|
|
validParts: /dd?|DD?|mm?|MM?|yy(?:yy)?/g, |
|
|
|
validParts: /dd?|DD?|mm?|MM?|yy(?:yy)?/g, |
|
|
|
nonpunctuation: /[^ -\/:-@\[\u3400-\u9fff-`{-~\t\n\r]+/g, |
|
|
|
nonpunctuation: /[^ -\/:-@\[\u3400-\u9fff-`{-~\t\n\r]+/g, |
|
|
|
parseFormat: function(format){ |
|
|
|
parseFormat: function(format){ |
|
|
|
|
|
|
|
if (typeof format.toValue === 'function' && typeof format.toDisplay === 'function') |
|
|
|
|
|
|
|
return format; |
|
|
|
// IE treats \0 as a string end in inputs (truncating the value),
|
|
|
|
// IE treats \0 as a string end in inputs (truncating the value),
|
|
|
|
// so it's a bad format delimiter, anyway
|
|
|
|
// so it's a bad format delimiter, anyway
|
|
|
|
var separators = format.replace(this.validParts, '\0').split('\0'), |
|
|
|
var separators = format.replace(this.validParts, '\0').split('\0'), |
|
|
@ -1594,6 +1709,8 @@ |
|
|
|
return date; |
|
|
|
return date; |
|
|
|
if (typeof format === 'string') |
|
|
|
if (typeof format === 'string') |
|
|
|
format = DPGlobal.parseFormat(format); |
|
|
|
format = DPGlobal.parseFormat(format); |
|
|
|
|
|
|
|
if (format.toValue) |
|
|
|
|
|
|
|
return format.toValue(date, format, language); |
|
|
|
var part_re = /([\-+]\d+)([dmwy])/, |
|
|
|
var part_re = /([\-+]\d+)([dmwy])/, |
|
|
|
parts = date.match(/([\-+]\d+)([dmwy])/g), |
|
|
|
parts = date.match(/([\-+]\d+)([dmwy])/g), |
|
|
|
part, dir, i; |
|
|
|
part, dir, i; |
|
|
@ -1699,6 +1816,8 @@ |
|
|
|
return ''; |
|
|
|
return ''; |
|
|
|
if (typeof format === 'string') |
|
|
|
if (typeof format === 'string') |
|
|
|
format = DPGlobal.parseFormat(format); |
|
|
|
format = DPGlobal.parseFormat(format); |
|
|
|
|
|
|
|
if (format.toDisplay) |
|
|
|
|
|
|
|
return format.toDisplay(date, format, language); |
|
|
|
var val = { |
|
|
|
var val = { |
|
|
|
d: date.getUTCDate(), |
|
|
|
d: date.getUTCDate(), |
|
|
|
D: dates[language].daysShort[date.getUTCDay()], |
|
|
|
D: dates[language].daysShort[date.getUTCDay()], |
|
|
@ -1722,6 +1841,9 @@ |
|
|
|
}, |
|
|
|
}, |
|
|
|
headTemplate: '<thead>'+ |
|
|
|
headTemplate: '<thead>'+ |
|
|
|
'<tr>'+ |
|
|
|
'<tr>'+ |
|
|
|
|
|
|
|
'<th colspan="7" class="datepicker-title"></th>'+ |
|
|
|
|
|
|
|
'</tr>'+ |
|
|
|
|
|
|
|
'<tr>'+ |
|
|
|
'<th class="prev">«</th>'+ |
|
|
|
'<th class="prev">«</th>'+ |
|
|
|
'<th colspan="5" class="datepicker-switch"></th>'+ |
|
|
|
'<th colspan="5" class="datepicker-switch"></th>'+ |
|
|
|
'<th class="next">»</th>'+ |
|
|
|
'<th class="next">»</th>'+ |
|
|
@ -1774,7 +1896,7 @@ |
|
|
|
|
|
|
|
|
|
|
|
/* DATEPICKER VERSION |
|
|
|
/* DATEPICKER VERSION |
|
|
|
* =================== */ |
|
|
|
* =================== */ |
|
|
|
$.fn.datepicker.version = "1.4.1"; |
|
|
|
$.fn.datepicker.version = '1.5.0'; |
|
|
|
|
|
|
|
|
|
|
|
/* DATEPICKER DATA-API |
|
|
|
/* DATEPICKER DATA-API |
|
|
|
* ================== */ |
|
|
|
* ================== */ |
|
|
@ -1795,4 +1917,4 @@ |
|
|
|
datepickerPlugin.call($('[data-provide="datepicker-inline"]')); |
|
|
|
datepickerPlugin.call($('[data-provide="datepicker-inline"]')); |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
}(window.jQuery)); |
|
|
|
})); |
|
|
|