Skip to content

Commit

Permalink
Updated dist folder for the 1.4.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
acrobat committed Mar 9, 2015
1 parent 0b31bec commit e7ca6bb
Show file tree
Hide file tree
Showing 12 changed files with 65 additions and 72 deletions.
22 changes: 10 additions & 12 deletions dist/css/bootstrap-datepicker.css
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,9 @@
.datepicker > div {
display: none;
}
.datepicker.days div.datepicker-days {
display: block;
}
.datepicker.months div.datepicker-months {
display: block;
}
.datepicker.years div.datepicker-years {
.datepicker.days .datepicker-days,
.datepicker.months .datepicker-months,
.datepicker.years .datepicker-years {
display: block;
}
.datepicker table {
Expand Down Expand Up @@ -417,7 +413,7 @@
.datepicker table tr td span.new {
color: #999999;
}
.datepicker th.datepicker-switch {
.datepicker .datepicker-switch {
width: 145px;
}
.datepicker thead tr:first-child th,
Expand All @@ -434,15 +430,17 @@
padding: 0 2px 0 5px;
vertical-align: middle;
}
.datepicker thead tr:first-child th.cw {
.datepicker thead tr:first-child .cw {
cursor: default;
background-color: transparent;
}
.input-append.date .add-on,
.input-prepend.date .add-on {
cursor: pointer;
}
.input-append.date .add-on i,
.input-prepend.date .add-on i {
cursor: pointer;
width: 16px;
height: 16px;
margin-top: 3px;
}
.input-daterange input {
text-align: center;
Expand Down
2 changes: 1 addition & 1 deletion dist/css/bootstrap-datepicker.min.css

Large diffs are not rendered by default.

22 changes: 10 additions & 12 deletions dist/css/bootstrap-datepicker.standalone.css
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,9 @@
.datepicker > div {
display: none;
}
.datepicker.days div.datepicker-days {
display: block;
}
.datepicker.months div.datepicker-months {
display: block;
}
.datepicker.years div.datepicker-years {
.datepicker.days .datepicker-days,
.datepicker.months .datepicker-months,
.datepicker.years .datepicker-years {
display: block;
}
.datepicker table {
Expand Down Expand Up @@ -417,7 +413,7 @@
.datepicker table tr td span.new {
color: #999999;
}
.datepicker th.datepicker-switch {
.datepicker .datepicker-switch {
width: 145px;
}
.datepicker thead tr:first-child th,
Expand All @@ -434,15 +430,17 @@
padding: 0 2px 0 5px;
vertical-align: middle;
}
.datepicker thead tr:first-child th.cw {
.datepicker thead tr:first-child .cw {
cursor: default;
background-color: transparent;
}
.input-append.date .add-on,
.input-prepend.date .add-on {
cursor: pointer;
}
.input-append.date .add-on i,
.input-prepend.date .add-on i {
cursor: pointer;
width: 16px;
height: 16px;
margin-top: 3px;
}
.input-daterange input {
text-align: center;
Expand Down
2 changes: 1 addition & 1 deletion dist/css/bootstrap-datepicker.standalone.min.css

Large diffs are not rendered by default.

16 changes: 6 additions & 10 deletions dist/css/bootstrap-datepicker3.css
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,9 @@
.datepicker > div {
display: none;
}
.datepicker.days div.datepicker-days {
display: block;
}
.datepicker.months div.datepicker-months {
display: block;
}
.datepicker.years div.datepicker-years {
.datepicker.days .datepicker-days,
.datepicker.months .datepicker-months,
.datepicker.years .datepicker-years {
display: block;
}
.datepicker table {
Expand Down Expand Up @@ -703,7 +699,7 @@ fieldset[disabled] .datepicker table tr td span.active.disabled:hover.active {
.datepicker table tr td span.new {
color: #999999;
}
.datepicker th.datepicker-switch {
.datepicker .datepicker-switch {
width: 145px;
}
.datepicker thead tr:first-child th,
Expand All @@ -720,11 +716,11 @@ fieldset[disabled] .datepicker table tr td span.active.disabled:hover.active {
padding: 0 2px 0 5px;
vertical-align: middle;
}
.datepicker thead tr:first-child th.cw {
.datepicker thead tr:first-child .cw {
cursor: default;
background-color: transparent;
}
.input-group.date .input-group-addon i {
.input-group.date .input-group-addon {
cursor: pointer;
}
.input-daterange {
Expand Down
2 changes: 1 addition & 1 deletion dist/css/bootstrap-datepicker3.min.css

Large diffs are not rendered by default.

16 changes: 6 additions & 10 deletions dist/css/bootstrap-datepicker3.standalone.css
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,9 @@
.datepicker > div {
display: none;
}
.datepicker.days div.datepicker-days {
display: block;
}
.datepicker.months div.datepicker-months {
display: block;
}
.datepicker.years div.datepicker-years {
.datepicker.days .datepicker-days,
.datepicker.months .datepicker-months,
.datepicker.years .datepicker-years {
display: block;
}
.datepicker table {
Expand Down Expand Up @@ -703,7 +699,7 @@ fieldset[disabled] .datepicker table tr td span.active.disabled:hover.active {
.datepicker table tr td span.new {
color: #999999;
}
.datepicker th.datepicker-switch {
.datepicker .datepicker-switch {
width: 145px;
}
.datepicker thead tr:first-child th,
Expand All @@ -720,11 +716,11 @@ fieldset[disabled] .datepicker table tr td span.active.disabled:hover.active {
padding: 0 2px 0 5px;
vertical-align: middle;
}
.datepicker thead tr:first-child th.cw {
.datepicker thead tr:first-child .cw {
cursor: default;
background-color: transparent;
}
.input-group.date .input-group-addon i {
.input-group.date .input-group-addon {
cursor: pointer;
}
.input-daterange {
Expand Down
2 changes: 1 addition & 1 deletion dist/css/bootstrap-datepicker3.standalone.min.css

Large diffs are not rendered by default.

48 changes: 26 additions & 22 deletions dist/js/bootstrap-datepicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
this.element = $(element);
this.isInline = false;
this.isInput = this.element.is('input');
this.component = this.element.is('.date') ? this.element.find('.add-on, .input-group-addon, .btn') : false;
this.component = this.element.hasClass('date') ? this.element.find('.add-on, .input-group-addon, .btn') : false;
this.hasInput = this.component && this.element.find('input').length;
if (this.component && this.component.length === 0)
this.component = false;
Expand All @@ -105,7 +105,7 @@
this.viewMode = this.o.startView;

if (this.o.calendarWeeks)
this.picker.find('tfoot th.today, tfoot th.clear')
this.picker.find('tfoot .today, tfoot .clear')
.attr('colspan', function(i, val){
return parseInt(val) + 1;
});
Expand Down Expand Up @@ -232,7 +232,7 @@
var plc = String(o.orientation).toLowerCase().split(/\s+/g),
_plc = o.orientation.toLowerCase();
plc = $.grep(plc, function(word){
return (/^auto|left|right|top|bottom$/).test(word);
return /^auto|left|right|top|bottom$/.test(word);
});
o.orientation = {x: 'auto', y: 'auto'};
if (!_plc || _plc === 'auto')
Expand All @@ -251,12 +251,12 @@
}
else {
_plc = $.grep(plc, function(word){
return (/^left|right$/).test(word);
return /^left|right$/.test(word);
});
o.orientation.x = _plc[0] || 'auto';

_plc = $.grep(plc, function(word){
return (/^top|bottom$/).test(word);
return /^top|bottom$/.test(word);
});
o.orientation.y = _plc[0] || 'auto';
}
Expand All @@ -269,7 +269,7 @@
o.defaultViewDate = UTCToday();
}
o.showOnFocus = o.showOnFocus !== undefined ? o.showOnFocus : true;
},
},
_events: [],
_secondaryEvents: [],
_applyEvents: function(evs){
Expand Down Expand Up @@ -413,7 +413,7 @@
},

show: function(){
if (this.element.attr('readonly'))
if (this.element.attr('readonly') && this.o.enableOnReadonly === false)
return;
if (!this.isInline)
this.picker.appendTo(this.o.container);
Expand Down Expand Up @@ -737,7 +737,7 @@
var dowCnt = this.o.weekStart,
html = '<tr>';
if (this.o.calendarWeeks){
this.picker.find('.datepicker-days thead tr:first-child th.datepicker-switch')
this.picker.find('.datepicker-days thead tr:first-child .datepicker-switch')
.attr('colspan', function(i, val){
return parseInt(val) + 1;
});
Expand Down Expand Up @@ -826,12 +826,12 @@
tooltip;
if (isNaN(year) || isNaN(month))
return;
this.picker.find('.datepicker-days thead th.datepicker-switch')
this.picker.find('.datepicker-days thead .datepicker-switch')
.text(dates[this.o.language].months[month]+' '+year);
this.picker.find('tfoot th.today')
this.picker.find('tfoot .today')
.text(todaytxt)
.toggle(this.o.todayBtn !== false);
this.picker.find('tfoot th.clear')
this.picker.find('tfoot .clear')
.text(cleartxt)
.toggle(this.o.clearBtn !== false);
this.updateNavArrows();
Expand Down Expand Up @@ -917,7 +917,7 @@
if (this.o.beforeShowMonth !== $.noop){
var that = this;
$.each(months, function(i, month){
if (!$(month).hasClass("disabled")) {
if (!$(month).hasClass('disabled')) {
var moDate = new Date(year, i, 1);
var before = that.o.beforeShowMonth(moDate);
if (before === false)
Expand Down Expand Up @@ -948,7 +948,7 @@
classes.push('active');
if (year < startYear || year > endYear)
classes.push('disabled');
html += '<span class="' + classes.join(' ') + '">'+year+'</span>';
html += '<span class="' + classes.join(' ') + '">' + year + '</span>';
year += 1;
}
yearCont.html(html);
Expand Down Expand Up @@ -1036,9 +1036,9 @@
}
break;
case 'span':
if (!target.is('.disabled')){
if (!target.hasClass('disabled')){
this.viewDate.setUTCDate(1);
if (target.is('.month')){
if (target.hasClass('month')){
day = 1;
month = target.parent().find('span').index(target);
year = this.viewDate.getUTCFullYear();
Expand All @@ -1063,11 +1063,11 @@
}
break;
case 'td':
if (target.is('.day') && !target.is('.disabled')){
if (target.hasClass('day') && !target.hasClass('disabled')){
day = parseInt(target.text(), 10)||1;
year = this.viewDate.getUTCFullYear();
month = this.viewDate.getUTCMonth();
if (target.is('.old')){
if (target.hasClass('old')){
if (month === 0){
month = 11;
year -= 1;
Expand All @@ -1076,7 +1076,7 @@
month -= 1;
}
}
else if (target.is('.new')){
else if (target.hasClass('new')){
if (month === 11){
month = 0;
year += 1;
Expand Down Expand Up @@ -1204,7 +1204,7 @@
},

keydown: function(e){
if (this.picker.is(':not(:visible)')){
if (!this.picker.is(':visible')){
if (e.keyCode === 27) // allow escape to hide and re-show picker
this.show();
return;
Expand Down Expand Up @@ -1334,9 +1334,9 @@
this.viewMode = Math.max(this.o.minViewMode, Math.min(2, this.viewMode + dir));
}
this.picker
.find('>div')
.children('div')
.hide()
.filter('.datepicker-'+DPGlobal.modes[this.viewMode].clsName)
.filter('.datepicker-' + DPGlobal.modes[this.viewMode].clsName)
.css('display', 'block');
this.updateNavArrows();
}
Expand Down Expand Up @@ -1467,7 +1467,7 @@
locopts = opts_from_locale(xopts.language),
// Options priority: js args, data-attrs, locales, defaults
opts = $.extend({}, defaults, locopts, elopts, options);
if ($this.is('.input-daterange') || opts.inputs){
if ($this.hasClass('input-daterange') || opts.inputs){
var ropts = {
inputs: opts.inputs || $this.find('input').toArray()
};
Expand Down Expand Up @@ -1515,6 +1515,7 @@
todayHighlight: false,
weekStart: 0,
disableTouchKeyboard: false,
enableOnReadonly: true,
container: 'body'
};
var locale_opts = $.fn.datepicker.locale_opts = [
Expand Down Expand Up @@ -1755,6 +1756,9 @@
return this;
};

/* DATEPICKER VERSION
* =================== */
$.fn.datepicker.version = "1.4.0";

/* DATEPICKER DATA-API
* ================== */
Expand Down
2 changes: 1 addition & 1 deletion dist/js/bootstrap-datepicker.min.js

Large diffs are not rendered by default.

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

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

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

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

0 comments on commit e7ca6bb

Please sign in to comment.