reservation off canvas nav submits default form values when navigating to the page
authorAnthony Talarico <talarico@gaslightmedia.com>
Fri, 30 Oct 2015 16:33:54 +0000 (12:33 -0400)
committerAnthony Talarico <talarico@gaslightmedia.com>
Fri, 30 Oct 2015 16:33:54 +0000 (12:33 -0400)
js/app.js
js/custom/pageSetup.js

index 2d8b28d..1cb1d34 100644 (file)
--- 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();
index df431e7..14f1303 100644 (file)
@@ -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();