Remove debugging
authorSeamus Lee <seamuslee001@gmail.com>
Thu, 1 Oct 2015 00:54:46 +0000 (00:54 +0000)
committerSeamus Lee <seamuslee001@gmail.com>
Thu, 15 Oct 2015 20:29:45 +0000 (20:29 +0000)
js hint fixes

js hint fixes

ang/crmMailing/RadioDate.js

index 0f0bcdb933423e0bd21b4c042ae2ab5bb66a48be..f509d62f1326f133bb04d3556e4d022f3354edf3 100644 (file)
               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));