Skip to content

Commit e7ca6bb

Browse files
committed
Updated dist folder for the 1.4.0 release
1 parent 0b31bec commit e7ca6bb

12 files changed

+65
-72
lines changed

dist/css/bootstrap-datepicker.css

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -75,13 +75,9 @@
7575
.datepicker > div {
7676
display: none;
7777
}
78-
.datepicker.days div.datepicker-days {
79-
display: block;
80-
}
81-
.datepicker.months div.datepicker-months {
82-
display: block;
83-
}
84-
.datepicker.years div.datepicker-years {
78+
.datepicker.days .datepicker-days,
79+
.datepicker.months .datepicker-months,
80+
.datepicker.years .datepicker-years {
8581
display: block;
8682
}
8783
.datepicker table {
@@ -417,7 +413,7 @@
417413
.datepicker table tr td span.new {
418414
color: #999999;
419415
}
420-
.datepicker th.datepicker-switch {
416+
.datepicker .datepicker-switch {
421417
width: 145px;
422418
}
423419
.datepicker thead tr:first-child th,
@@ -434,15 +430,17 @@
434430
padding: 0 2px 0 5px;
435431
vertical-align: middle;
436432
}
437-
.datepicker thead tr:first-child th.cw {
433+
.datepicker thead tr:first-child .cw {
438434
cursor: default;
439435
background-color: transparent;
440436
}
437+
.input-append.date .add-on,
438+
.input-prepend.date .add-on {
439+
cursor: pointer;
440+
}
441441
.input-append.date .add-on i,
442442
.input-prepend.date .add-on i {
443-
cursor: pointer;
444-
width: 16px;
445-
height: 16px;
443+
margin-top: 3px;
446444
}
447445
.input-daterange input {
448446
text-align: center;

dist/css/bootstrap-datepicker.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/css/bootstrap-datepicker.standalone.css

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -75,13 +75,9 @@
7575
.datepicker > div {
7676
display: none;
7777
}
78-
.datepicker.days div.datepicker-days {
79-
display: block;
80-
}
81-
.datepicker.months div.datepicker-months {
82-
display: block;
83-
}
84-
.datepicker.years div.datepicker-years {
78+
.datepicker.days .datepicker-days,
79+
.datepicker.months .datepicker-months,
80+
.datepicker.years .datepicker-years {
8581
display: block;
8682
}
8783
.datepicker table {
@@ -417,7 +413,7 @@
417413
.datepicker table tr td span.new {
418414
color: #999999;
419415
}
420-
.datepicker th.datepicker-switch {
416+
.datepicker .datepicker-switch {
421417
width: 145px;
422418
}
423419
.datepicker thead tr:first-child th,
@@ -434,15 +430,17 @@
434430
padding: 0 2px 0 5px;
435431
vertical-align: middle;
436432
}
437-
.datepicker thead tr:first-child th.cw {
433+
.datepicker thead tr:first-child .cw {
438434
cursor: default;
439435
background-color: transparent;
440436
}
437+
.input-append.date .add-on,
438+
.input-prepend.date .add-on {
439+
cursor: pointer;
440+
}
441441
.input-append.date .add-on i,
442442
.input-prepend.date .add-on i {
443-
cursor: pointer;
444-
width: 16px;
445-
height: 16px;
443+
margin-top: 3px;
446444
}
447445
.input-daterange input {
448446
text-align: center;

dist/css/bootstrap-datepicker.standalone.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/css/bootstrap-datepicker3.css

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -73,13 +73,9 @@
7373
.datepicker > div {
7474
display: none;
7575
}
76-
.datepicker.days div.datepicker-days {
77-
display: block;
78-
}
79-
.datepicker.months div.datepicker-months {
80-
display: block;
81-
}
82-
.datepicker.years div.datepicker-years {
76+
.datepicker.days .datepicker-days,
77+
.datepicker.months .datepicker-months,
78+
.datepicker.years .datepicker-years {
8379
display: block;
8480
}
8581
.datepicker table {
@@ -703,7 +699,7 @@ fieldset[disabled] .datepicker table tr td span.active.disabled:hover.active {
703699
.datepicker table tr td span.new {
704700
color: #999999;
705701
}
706-
.datepicker th.datepicker-switch {
702+
.datepicker .datepicker-switch {
707703
width: 145px;
708704
}
709705
.datepicker thead tr:first-child th,
@@ -720,11 +716,11 @@ fieldset[disabled] .datepicker table tr td span.active.disabled:hover.active {
720716
padding: 0 2px 0 5px;
721717
vertical-align: middle;
722718
}
723-
.datepicker thead tr:first-child th.cw {
719+
.datepicker thead tr:first-child .cw {
724720
cursor: default;
725721
background-color: transparent;
726722
}
727-
.input-group.date .input-group-addon i {
723+
.input-group.date .input-group-addon {
728724
cursor: pointer;
729725
}
730726
.input-daterange {

dist/css/bootstrap-datepicker3.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/css/bootstrap-datepicker3.standalone.css

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -73,13 +73,9 @@
7373
.datepicker > div {
7474
display: none;
7575
}
76-
.datepicker.days div.datepicker-days {
77-
display: block;
78-
}
79-
.datepicker.months div.datepicker-months {
80-
display: block;
81-
}
82-
.datepicker.years div.datepicker-years {
76+
.datepicker.days .datepicker-days,
77+
.datepicker.months .datepicker-months,
78+
.datepicker.years .datepicker-years {
8379
display: block;
8480
}
8581
.datepicker table {
@@ -703,7 +699,7 @@ fieldset[disabled] .datepicker table tr td span.active.disabled:hover.active {
703699
.datepicker table tr td span.new {
704700
color: #999999;
705701
}
706-
.datepicker th.datepicker-switch {
702+
.datepicker .datepicker-switch {
707703
width: 145px;
708704
}
709705
.datepicker thead tr:first-child th,
@@ -720,11 +716,11 @@ fieldset[disabled] .datepicker table tr td span.active.disabled:hover.active {
720716
padding: 0 2px 0 5px;
721717
vertical-align: middle;
722718
}
723-
.datepicker thead tr:first-child th.cw {
719+
.datepicker thead tr:first-child .cw {
724720
cursor: default;
725721
background-color: transparent;
726722
}
727-
.input-group.date .input-group-addon i {
723+
.input-group.date .input-group-addon {
728724
cursor: pointer;
729725
}
730726
.input-daterange {

dist/css/bootstrap-datepicker3.standalone.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/js/bootstrap-datepicker.js

Lines changed: 26 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
this.element = $(element);
8383
this.isInline = false;
8484
this.isInput = this.element.is('input');
85-
this.component = this.element.is('.date') ? this.element.find('.add-on, .input-group-addon, .btn') : false;
85+
this.component = this.element.hasClass('date') ? this.element.find('.add-on, .input-group-addon, .btn') : false;
8686
this.hasInput = this.component && this.element.find('input').length;
8787
if (this.component && this.component.length === 0)
8888
this.component = false;
@@ -105,7 +105,7 @@
105105
this.viewMode = this.o.startView;
106106

107107
if (this.o.calendarWeeks)
108-
this.picker.find('tfoot th.today, tfoot th.clear')
108+
this.picker.find('tfoot .today, tfoot .clear')
109109
.attr('colspan', function(i, val){
110110
return parseInt(val) + 1;
111111
});
@@ -232,7 +232,7 @@
232232
var plc = String(o.orientation).toLowerCase().split(/\s+/g),
233233
_plc = o.orientation.toLowerCase();
234234
plc = $.grep(plc, function(word){
235-
return (/^auto|left|right|top|bottom$/).test(word);
235+
return /^auto|left|right|top|bottom$/.test(word);
236236
});
237237
o.orientation = {x: 'auto', y: 'auto'};
238238
if (!_plc || _plc === 'auto')
@@ -251,12 +251,12 @@
251251
}
252252
else {
253253
_plc = $.grep(plc, function(word){
254-
return (/^left|right$/).test(word);
254+
return /^left|right$/.test(word);
255255
});
256256
o.orientation.x = _plc[0] || 'auto';
257257

258258
_plc = $.grep(plc, function(word){
259-
return (/^top|bottom$/).test(word);
259+
return /^top|bottom$/.test(word);
260260
});
261261
o.orientation.y = _plc[0] || 'auto';
262262
}
@@ -269,7 +269,7 @@
269269
o.defaultViewDate = UTCToday();
270270
}
271271
o.showOnFocus = o.showOnFocus !== undefined ? o.showOnFocus : true;
272-
},
272+
},
273273
_events: [],
274274
_secondaryEvents: [],
275275
_applyEvents: function(evs){
@@ -413,7 +413,7 @@
413413
},
414414

415415
show: function(){
416-
if (this.element.attr('readonly'))
416+
if (this.element.attr('readonly') && this.o.enableOnReadonly === false)
417417
return;
418418
if (!this.isInline)
419419
this.picker.appendTo(this.o.container);
@@ -737,7 +737,7 @@
737737
var dowCnt = this.o.weekStart,
738738
html = '<tr>';
739739
if (this.o.calendarWeeks){
740-
this.picker.find('.datepicker-days thead tr:first-child th.datepicker-switch')
740+
this.picker.find('.datepicker-days thead tr:first-child .datepicker-switch')
741741
.attr('colspan', function(i, val){
742742
return parseInt(val) + 1;
743743
});
@@ -826,12 +826,12 @@
826826
tooltip;
827827
if (isNaN(year) || isNaN(month))
828828
return;
829-
this.picker.find('.datepicker-days thead th.datepicker-switch')
829+
this.picker.find('.datepicker-days thead .datepicker-switch')
830830
.text(dates[this.o.language].months[month]+' '+year);
831-
this.picker.find('tfoot th.today')
831+
this.picker.find('tfoot .today')
832832
.text(todaytxt)
833833
.toggle(this.o.todayBtn !== false);
834-
this.picker.find('tfoot th.clear')
834+
this.picker.find('tfoot .clear')
835835
.text(cleartxt)
836836
.toggle(this.o.clearBtn !== false);
837837
this.updateNavArrows();
@@ -917,7 +917,7 @@
917917
if (this.o.beforeShowMonth !== $.noop){
918918
var that = this;
919919
$.each(months, function(i, month){
920-
if (!$(month).hasClass("disabled")) {
920+
if (!$(month).hasClass('disabled')) {
921921
var moDate = new Date(year, i, 1);
922922
var before = that.o.beforeShowMonth(moDate);
923923
if (before === false)
@@ -948,7 +948,7 @@
948948
classes.push('active');
949949
if (year < startYear || year > endYear)
950950
classes.push('disabled');
951-
html += '<span class="' + classes.join(' ') + '">'+year+'</span>';
951+
html += '<span class="' + classes.join(' ') + '">' + year + '</span>';
952952
year += 1;
953953
}
954954
yearCont.html(html);
@@ -1036,9 +1036,9 @@
10361036
}
10371037
break;
10381038
case 'span':
1039-
if (!target.is('.disabled')){
1039+
if (!target.hasClass('disabled')){
10401040
this.viewDate.setUTCDate(1);
1041-
if (target.is('.month')){
1041+
if (target.hasClass('month')){
10421042
day = 1;
10431043
month = target.parent().find('span').index(target);
10441044
year = this.viewDate.getUTCFullYear();
@@ -1063,11 +1063,11 @@
10631063
}
10641064
break;
10651065
case 'td':
1066-
if (target.is('.day') && !target.is('.disabled')){
1066+
if (target.hasClass('day') && !target.hasClass('disabled')){
10671067
day = parseInt(target.text(), 10)||1;
10681068
year = this.viewDate.getUTCFullYear();
10691069
month = this.viewDate.getUTCMonth();
1070-
if (target.is('.old')){
1070+
if (target.hasClass('old')){
10711071
if (month === 0){
10721072
month = 11;
10731073
year -= 1;
@@ -1076,7 +1076,7 @@
10761076
month -= 1;
10771077
}
10781078
}
1079-
else if (target.is('.new')){
1079+
else if (target.hasClass('new')){
10801080
if (month === 11){
10811081
month = 0;
10821082
year += 1;
@@ -1204,7 +1204,7 @@
12041204
},
12051205

12061206
keydown: function(e){
1207-
if (this.picker.is(':not(:visible)')){
1207+
if (!this.picker.is(':visible')){
12081208
if (e.keyCode === 27) // allow escape to hide and re-show picker
12091209
this.show();
12101210
return;
@@ -1334,9 +1334,9 @@
13341334
this.viewMode = Math.max(this.o.minViewMode, Math.min(2, this.viewMode + dir));
13351335
}
13361336
this.picker
1337-
.find('>div')
1337+
.children('div')
13381338
.hide()
1339-
.filter('.datepicker-'+DPGlobal.modes[this.viewMode].clsName)
1339+
.filter('.datepicker-' + DPGlobal.modes[this.viewMode].clsName)
13401340
.css('display', 'block');
13411341
this.updateNavArrows();
13421342
}
@@ -1467,7 +1467,7 @@
14671467
locopts = opts_from_locale(xopts.language),
14681468
// Options priority: js args, data-attrs, locales, defaults
14691469
opts = $.extend({}, defaults, locopts, elopts, options);
1470-
if ($this.is('.input-daterange') || opts.inputs){
1470+
if ($this.hasClass('input-daterange') || opts.inputs){
14711471
var ropts = {
14721472
inputs: opts.inputs || $this.find('input').toArray()
14731473
};
@@ -1515,6 +1515,7 @@
15151515
todayHighlight: false,
15161516
weekStart: 0,
15171517
disableTouchKeyboard: false,
1518+
enableOnReadonly: true,
15181519
container: 'body'
15191520
};
15201521
var locale_opts = $.fn.datepicker.locale_opts = [
@@ -1755,6 +1756,9 @@
17551756
return this;
17561757
};
17571758

1759+
/* DATEPICKER VERSION
1760+
* =================== */
1761+
$.fn.datepicker.version = "1.4.0";
17581762

17591763
/* DATEPICKER DATA-API
17601764
* ================== */

dist/js/bootstrap-datepicker.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/locales/bootstrap-datepicker.me.min.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/locales/bootstrap-datepicker.uk.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)