From c0c19ffdc4f4a2affe82d6ce119a11cc6dd80a6e Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Fri, 30 Oct 2015 12:33:54 -0400 Subject: [PATCH] reservation off canvas nav submits default form values when navigating to the page --- js/app.js | 2 +- js/custom/pageSetup.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/js/app.js b/js/app.js index 2d8b28d..1cb1d34 100644 --- a/js/app.js +++ b/js/app.js @@ -100,7 +100,7 @@ $(document).ready(function () { departure = $("#date2").val(); } }); - + $(".page_item.page-item-150.current_page_item").find('a[href]').attr("href", "#").attr('onclick', "document.getElementById('form').submit();"); // off canvas menu values ///////////////////////// $('#offGuests').blur(function () { guests = $('#offGuests').val(); diff --git a/js/custom/pageSetup.js b/js/custom/pageSetup.js index df431e7..14f1303 100644 --- a/js/custom/pageSetup.js +++ b/js/custom/pageSetup.js @@ -91,7 +91,7 @@ $(document).ready(function () { departure = $("#date2").val(); } }); - + $(".page_item.page-item-150.current_page_item").find('a[href]').attr("href", "#").attr('onclick', "document.getElementById('form').submit();"); // off canvas menu values ///////////////////////// $('#offGuests').blur(function () { guests = $('#offGuests').val(); -- 2.17.1