Skip to content

Commit

Permalink
Merge pull request #217 from holtkamp/patch-getValidValue-undefined
Browse files Browse the repository at this point in the history
Patch get valid value undefined
  • Loading branch information
longbill committed Mar 8, 2016
2 parents 2ccd524 + 7912d1a commit a36b34c
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions jquery.daterangepicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -1089,17 +1089,17 @@
}

initiated = true;

function getValidValue(date, format, locale) {
if (moment(date, format, locale).isValid()) {
return moment(date, format, locale).toDate();
} else {
return moment().toDate()
}
}
}
}

function getValidValue(date, format, locale) {
if (moment(date, format, locale).isValid()) {
return moment(date, format, locale).toDate();
} else {
return moment().toDate()
}
}

function updateCalendarWidth()
{
var gapMargin = box.find('.gap').css('margin-left');
Expand Down

0 comments on commit a36b34c

Please sign in to comment.