Skip to content

Commit

Permalink
Generate dist files 1.7.0-RC2
Browse files Browse the repository at this point in the history
  • Loading branch information
acrobat committed Mar 26, 2017
1 parent 692390c commit 9de87ae
Show file tree
Hide file tree
Showing 17 changed files with 77 additions and 75 deletions.
8 changes: 4 additions & 4 deletions dist/css/bootstrap-datepicker.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/css/bootstrap-datepicker.css.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/css/bootstrap-datepicker.min.css

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions dist/css/bootstrap-datepicker.standalone.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/css/bootstrap-datepicker.standalone.css.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/css/bootstrap-datepicker.standalone.min.css

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions dist/css/bootstrap-datepicker3.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/css/bootstrap-datepicker3.css.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/css/bootstrap-datepicker3.min.css

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions dist/css/bootstrap-datepicker3.standalone.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/css/bootstrap-datepicker3.standalone.css.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/css/bootstrap-datepicker3.standalone.min.css

Large diffs are not rendered by default.

86 changes: 43 additions & 43 deletions dist/js/bootstrap-datepicker.js
@@ -1,5 +1,5 @@
/*!
* Datepicker for Bootstrap v1.7.0-dev (https://github.com/uxsolutions/bootstrap-datepicker)
* Datepicker for Bootstrap v1.7.0-RC2 (https://github.com/uxsolutions/bootstrap-datepicker)
*
* Licensed under the Apache License v2.0 (http://www.apache.org/licenses/LICENSE-2.0)
*/
Expand Down Expand Up @@ -404,6 +404,9 @@
[this.picker, '.prev, .next', {
click: $.proxy(this.navArrowsClick, this)
}],
[this.picker, '.day:not(.disabled)', {
click: $.proxy(this.dayCellClick, this)
}],
[$(window), {
resize: $.proxy(this.place, this)
}],
Expand Down Expand Up @@ -793,14 +796,10 @@
}
else if (this.dates.length){
// setting date by typing
if (typeof this.o.format === 'string') {
if ((String(this.element[0].value).length === String(this.o.format).length) && (String(oldDates) !== String(this.dates)))
this._trigger('changeDate');
this.element.change();
} else if (String(oldDates) !== String(this.dates)) {
this._trigger('changeDate');
this.element.change();
}
if (String(oldDates) !== String(this.dates) && fromArgs) {
this._trigger('changeDate');
this.element.change();
}
}
if (!this.dates.length && oldDates.length) {
this._trigger('clearDate');
Expand All @@ -812,6 +811,7 @@
},

fillDow: function(){
if (this.o.showWeekDays) {
var dowCnt = this.o.weekStart,
html = '<tr>';
if (this.o.calendarWeeks){
Expand All @@ -825,10 +825,11 @@
}
html += '</tr>';
this.picker.find('.datepicker-days thead').append(html);
}
},

fillMonths: function(){
var localDate = this._utc_to_local(this.viewDate);
var localDate = this._utc_to_local(this.viewDate);
var html = '';
var focused;
for (var i = 0; i < 12; i++){
Expand Down Expand Up @@ -921,8 +922,8 @@
classes.push('disabled');
}
if (currVal === focusedVal) {
classes.push('focused');
}
classes.push('focused');
}

if (beforeFn !== $.noop) {
before = beforeFn(new Date(currVal, 0, 1));
Expand Down Expand Up @@ -970,13 +971,13 @@
.text(DPGlobal.formatDate(d, titleFormat, this.o.language));
this.picker.find('tfoot .today')
.text(todaytxt)
.toggle(this.o.todayBtn !== false);
.css('display', this.o.todayBtn === true || this.o.todayBtn === 'linked' ? 'table-cell' : 'none');
this.picker.find('tfoot .clear')
.text(cleartxt)
.toggle(this.o.clearBtn !== false);
.css('display', this.o.clearBtn === true ? 'table-cell' : 'none');
this.picker.find('thead .datepicker-title')
.text(this.o.title)
.toggle(this.o.title !== '');
.css('display', typeof this.o.title === 'string' && this.o.title !== '' ? 'table-cell' : 'none');
this.updateNavArrows();
this.fillMonths();
var prevMonth = UTCDate(year, month, 0),
Expand Down Expand Up @@ -1012,6 +1013,8 @@
clsName = this.getClassNames(prevMonth);
clsName.push('day');

var content = prevMonth.getUTCDate();

if (this.o.beforeShowDay !== $.noop){
before = this.o.beforeShowDay(this._utc_to_local(prevMonth));
if (before === undefined)
Expand All @@ -1026,6 +1029,8 @@
clsName = clsName.concat(before.classes.split(/\s+/));
if (before.tooltip)
tooltip = before.tooltip;
if (before.content)
content = before.content;
}

//Check if uniqueSort exists (supported by jquery >=1.12 and >=2.2)
Expand All @@ -1036,7 +1041,7 @@
clsName = $.unique(clsName);
}

html.push('<td class="'+clsName.join(' ')+'"' + (tooltip ? ' title="'+tooltip+'"' : '') + (this.o.dateCells ? ' data-date="' + prevMonth.getTime().toString() + '"' : '') + '>' + prevMonth.getUTCDate() + '</td>');
html.push('<td class="'+clsName.join(' ')+'"' + (tooltip ? ' title="'+tooltip+'"' : '') + ' data-date="' + prevMonth.getTime().toString() + '">' + content + '</td>');
tooltip = null;
if (weekDay === this.o.weekEnd){
html.push('</tr>');
Expand Down Expand Up @@ -1183,28 +1188,6 @@
}

if (!target.hasClass('disabled')){
// Clicked on a day
if (target.hasClass('day')){
day = Number(target.text());
year = this.viewDate.getUTCFullYear();
month = this.viewDate.getUTCMonth();

if (target.hasClass('old') || target.hasClass('new')){
dir = target.hasClass('old') ? -1 : 1;
month = (month + dir + 12) % 12;
if ((dir === -1 && month === 11) || (dir === 1 && month === 0)) {
year += dir;
if (this.o.updateViewDate) {
this._trigger('changeYear', this.viewDate);
}
}
if (this.o.updateViewDate) {
this._trigger('changeMonth', this.viewDate);
}
}
this._setDate(UTCDate(year, month, day));
}

// Clicked on a month, year, decade, century
if (target.hasClass('month')
|| target.hasClass('year')
Expand Down Expand Up @@ -1240,10 +1223,27 @@
delete this._focused_from;
},

dayCellClick: function(e){
var $target = $(e.currentTarget);
var timestamp = $target.data('date');
var date = new Date(timestamp);

if (this.o.updateViewDate) {
if (date.getUTCFullYear() !== this.viewDate.getUTCFullYear()) {
this._trigger('changeYear', this.viewDate);
}

if (date.getUTCMonth() !== this.viewDate.getUTCMonth()) {
this._trigger('changeMonth', this.viewDate);
}
}
this._setDate(date);
},

// Clicked on prev or next
navArrowsClick: function(e){
var target = $(e.target);
var dir = target.hasClass('prev') ? -1 : 1;
var $target = $(e.currentTarget);
var dir = $target.hasClass('prev') ? -1 : 1;
if (this.viewMode !== 0){
dir *= DPGlobal.viewModes[this.viewMode].navStep * 12;
}
Expand Down Expand Up @@ -1702,12 +1702,12 @@
zIndexOffset: 10,
container: 'body',
immediateUpdates: false,
dateCells: false,
title: '',
templates: {
leftArrow: '&#x00AB;',
rightArrow: '&#x00BB;'
}
},
showWeekDays: true
};
var locale_opts = $.fn.datepicker.locale_opts = [
'format',
Expand Down Expand Up @@ -1998,7 +1998,7 @@

/* DATEPICKER VERSION
* =================== */
$.fn.datepicker.version = '1.7.0-dev';
$.fn.datepicker.version = '1.7.0-RC2';

$.fn.datepicker.deprecated = function(msg){
var console = window.console;
Expand Down
6 changes: 3 additions & 3 deletions dist/js/bootstrap-datepicker.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/locales/bootstrap-datepicker.hy.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/locales/bootstrap-datepicker.ta.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/locales/bootstrap-datepicker.tj.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 9de87ae

Please sign in to comment.