From 6f1ddb548fd0905792bab118fc395ff838f18413 Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Tue, 10 Nov 2015 11:43:59 -0500 Subject: [PATCH] removing auto set for departure date --- js/app.js | 5 +++-- js/custom/pageSetup.js | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/js/app.js b/js/app.js index 368a6b0..9b0709a 100644 --- a/js/app.js +++ b/js/app.js @@ -105,14 +105,15 @@ $(document).ready(function () { departure = departure.replace(/\//g, ""); departure = parseInt(departure, 10); stay = (departure - arrival); - if (stay <= 0) { + alert(stay); + if (stay < 0) { stay = 0; } else { $("#nightsOff").val(departure - arrival); } stay = 'stay_nights=' + (departure - arrival) + '&'; if ($("#departOff").val() < $('#departOff').attr("min")) { - $("#departOff").val(requiredDate); + // $("#departOff").val(requiredDate); } }); ///// end of canvas datepicker logic ^ ////////////////////////////////////////////// diff --git a/js/custom/pageSetup.js b/js/custom/pageSetup.js index 3c30188..5d096b3 100644 --- a/js/custom/pageSetup.js +++ b/js/custom/pageSetup.js @@ -96,14 +96,15 @@ $(document).ready(function () { departure = departure.replace(/\//g, ""); departure = parseInt(departure, 10); stay = (departure - arrival); - if (stay <= 0) { + alert(stay); + if (stay < 0) { stay = 0; } else { $("#nightsOff").val(departure - arrival); } stay = 'stay_nights=' + (departure - arrival) + '&'; if ($("#departOff").val() < $('#departOff').attr("min")) { - $("#departOff").val(requiredDate); + // $("#departOff").val(requiredDate); } }); ///// end of canvas datepicker logic ^ ////////////////////////////////////////////// -- 2.17.1