A slight mistake noticed.
This commit is contained in:
parent
b2d73401b5
commit
83d8a5cb30
1 changed files with 2 additions and 2 deletions
|
@ -31,7 +31,7 @@
|
||||||
//http://holidayapi.com
|
//http://holidayapi.com
|
||||||
//var apiKey = "177c7a48-d566-426b-bb50-cf9926f767ec";
|
//var apiKey = "177c7a48-d566-426b-bb50-cf9926f767ec";
|
||||||
|
|
||||||
var generate = function(){
|
function generate() {
|
||||||
var form = document.getElementById("calendar-input");
|
var form = document.getElementById("calendar-input");
|
||||||
var startDate = document.getElementById("start-date").value;
|
var startDate = document.getElementById("start-date").value;
|
||||||
var numberOfDays = document.getElementById("number-of-days").value;
|
var numberOfDays = document.getElementById("number-of-days").value;
|
||||||
|
@ -65,7 +65,7 @@
|
||||||
var startYear = parseInt(dateString.substr(0,4));
|
var startYear = parseInt(dateString.substr(0,4));
|
||||||
var startMonth = parseInt(dateString.substr(5,2));
|
var startMonth = parseInt(dateString.substr(5,2));
|
||||||
var startDay = parseInt(dateString.substr(8,2));
|
var startDay = parseInt(dateString.substr(8,2));
|
||||||
if (!isNaN(startYear) && !isNaN(startMonth) && isNaN(startDay)) {
|
if (!isNaN(startYear) && !isNaN(startMonth) && !isNaN(startDay)) {
|
||||||
//Good, we're validated!
|
//Good, we're validated!
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue