Skip to content
This repository has been archived by the owner on Apr 13, 2022. It is now read-only.

Commit

Permalink
compiled a PR
Browse files Browse the repository at this point in the history
  • Loading branch information
kalepail committed Dec 22, 2017
1 parent 13a4313 commit f4071ac
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions public/js/Calendar.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@
this.orig_current_date = null;

this.earliest_date = settings.earliest_date ? moment(settings.earliest_date)
: moment('1900-01-01');
: moment('1900-01-01', 'YYYY-MM-DD');
this.latest_date = settings.latest_date ? moment(settings.latest_date)
: moment('2900-12-31');
: moment('2900-12-31', 'YYYY-MM-DD');
this.end_date = settings.end_date ? moment(settings.end_date)
: (this.type == 'double' ? moment() : null);
this.start_date = settings.start_date ? moment(settings.start_date)
Expand Down Expand Up @@ -186,8 +186,8 @@

// Once you click into a selection.. this lets you click out
this.element.on('click', function() {
document.addEventListener('click', function (f) {
var contains = self.element.find(f.path[0]);
document.addEventListener('click', function (event) {
var contains = $(event.target).parents('.daterange');

if (!contains.length) {
if (self.presetIsOpen)
Expand Down

0 comments on commit f4071ac

Please sign in to comment.