Skip to content

Commit

Permalink
fix(BS4) Bootstrap 4 specific changes
Browse files Browse the repository at this point in the history
  • Loading branch information
mayeenulislam committed Aug 7, 2019
1 parent b1fa3e2 commit c70bb0d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions build/js/bootstrap-datetimepicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@
content.append(toolbar);
}
if (hasDate()) {
content.append($('<li>').addClass((options.collapse && hasTime() ? 'collapse in' : '')).append(dateView));
content.append($('<li>').addClass((options.collapse && hasTime() ? 'collapse show' : '')).append(dateView));
}
if (options.toolbarPlacement === 'default') {
content.append(toolbar);
Expand Down Expand Up @@ -1100,8 +1100,8 @@
togglePicker: function (e) {
var $this = $(e.target),
$parent = $this.closest('ul'),
expanded = $parent.find('.in'),
closed = $parent.find('.collapse:not(.in)'),
expanded = $parent.find('.show'),
closed = $parent.find('.collapse:not(.show)'),
collapseData;

if (expanded && expanded.length) {
Expand All @@ -1113,8 +1113,8 @@
expanded.collapse('hide');
closed.collapse('show');
} else { // otherwise just toggle in class on the two views
expanded.removeClass('in');
closed.addClass('in');
expanded.removeClass('show');
closed.addClass('show');
}
if ($this.is('span')) {
$this.toggleClass(options.icons.time + ' ' + options.icons.date);
Expand Down

0 comments on commit c70bb0d

Please sign in to comment.