Skip to content
This repository has been archived by the owner on Dec 7, 2021. It is now read-only.

initial time value is only set if the value was not set before #116

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion public/js/selectdate.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,10 @@ function getURLParameter(name) {

function setDestinationDate(srcDateBox, destDateBox, dateText)
{
if (destDateBox.val() == destDateBox.prop("defaultValue"))
if(isNaN(Date.parse(dateText.replace(/-/g,'/'))))
return;

if (destDateBox.val() == 'from' || destDateBox.val() == 'until')
destDateBox.val(dateText);
else {
var startDate = $('#dt_from').datetimepicker('getDate');
Expand Down