Widget:VisitSchedulerRedux: Difference between revisions
Jump to navigation
Jump to search
Matt Pijoan (talk | contribs) No edit summary |
Matt Pijoan (talk | contribs) No edit summary |
||
Line 72: | Line 72: | ||
function validateConstraints(){ | function validateConstraints(){ | ||
var errorFlag = false; | var errorFlag = false; | ||
if((new Date($("#visit-1").val()).getTime() - new Date($("#indexEvent").val()).getTime()) | if((new Date($("#visit-1").val()).getTime() - new Date($("#indexEvent").val()).getTime()) < (24*60*60*1000)){ | ||
errorFlag = true; | errorFlag = true; | ||
$("#visit-1").css("border", "5px solid red"); | $("#visit-1").css("border", "5px solid red"); |