From 164c6d09dd0cf248d5347578d452cbe724e8a5f2 Mon Sep 17 00:00:00 2001 From: Seamus Lee Date: Thu, 1 Oct 2015 00:54:46 +0000 Subject: [PATCH] Remove debugging js hint fixes js hint fixes --- ang/crmMailing/RadioDate.js | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/ang/crmMailing/RadioDate.js b/ang/crmMailing/RadioDate.js index 0f0bcdb933..f509d62f13 100644 --- a/ang/crmMailing/RadioDate.js +++ b/ang/crmMailing/RadioDate.js @@ -49,17 +49,16 @@ schedule.mode = 'at'; schedule.datetime = '?'; } else { - var d = new Date() - var submittedDate = $(this).val(); - console.log(submittedDate); + var d = new Date(), month = '' + (d.getMonth() + 1), day = '' + d.getDate(), - year = d.getFullYear(); + year = d.getFullYear(), + hours = '' + d.getHours(), + minutes = '' + d.getMinutes(); + var submittedDate = $(this).val(); if (month.length < 2) month = '0' + month; if (day.length < 2) day = '0' + day; date = [year, month, day].join('-'); - hours = '' + (d.getHours()), - minutes = '' + (d.getMinutes()); time = [hours, minutes, "00"].join(':'); currentDate = date + ' ' + time; ngModel.$setValidity('dateTimeInThePast', !($(this).val().length && submittedDate < currentDate)); -- 2.25.1