From: Anthony Talarico Date: Tue, 10 Nov 2015 13:24:27 +0000 (-0500) Subject: Adjusting reservation form to restrict input X-Git-Tag: v1.0.0^2~329 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=46f4274f702ef440e5d2b4247445feb95c136bf7;p=WP-Themes%2Fstaffords.git Adjusting reservation form to restrict input --- diff --git a/js/app.js b/js/app.js index 02159b3..0b98e7d 100644 --- a/js/app.js +++ b/js/app.js @@ -121,7 +121,7 @@ $(document).ready(function () { }); // form submission logic // off canvas resevation form submission /////////////////////////////////////////// - $('.res-buttonOff').on('click', function book() { + $('.res-buttonOff').on('click', function () { adults = "adults=" + $("#adultsOff").val() + "&"; kids = "children=" + $("#kidsOff").val(); if ($('#propertyNameOff option:selected').text() === "Stafford's Bay View Inn") { @@ -136,7 +136,7 @@ $(document).ready(function () { }); // top bar reservation dropdown button submission ////////////////////////////////////////// - $('.res-button').on('click', function book() { + $('.res-button').on('click', function () { adults = "adults=" + $("#adults").val() + "&"; kids = "children=" + $("#kids").val(); if ($('#propertyName option:selected').text() === "Stafford's Bay View Inn") { diff --git a/js/custom/pageSetup.js b/js/custom/pageSetup.js index 7953b20..902613a 100644 --- a/js/custom/pageSetup.js +++ b/js/custom/pageSetup.js @@ -112,7 +112,7 @@ $(document).ready(function () { }); // form submission logic // off canvas resevation form submission /////////////////////////////////////////// - $('.res-buttonOff').on('click', function book() { + $('.res-buttonOff').on('click', function () { adults = "adults=" + $("#adultsOff").val() + "&"; kids = "children=" + $("#kidsOff").val(); if ($('#propertyNameOff option:selected').text() === "Stafford's Bay View Inn") { @@ -127,7 +127,7 @@ $(document).ready(function () { }); // top bar reservation dropdown button submission ////////////////////////////////////////// - $('.res-button').on('click', function book() { + $('.res-button').on('click', function () { adults = "adults=" + $("#adults").val() + "&"; kids = "children=" + $("#kids").val(); if ($('#propertyName option:selected').text() === "Stafford's Bay View Inn") { diff --git a/scss/_right-off-canvas.scss b/scss/_right-off-canvas.scss index 2cab660..760fd9f 100644 --- a/scss/_right-off-canvas.scss +++ b/scss/_right-off-canvas.scss @@ -58,7 +58,7 @@ right: 20px; } } - .res-buttonOff { + .res-buttonOff { background: $cream; border: none; line-height: 25px; @@ -71,8 +71,8 @@ &:selected { color: $red; } - } -} + } +} .offcavas-social-list { @include inline-list; margin-right: auto;