From df609f6efe688e546dacf6633745eb8d4397f31f Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Fri, 20 Jul 2018 08:04:17 -0400 Subject: [PATCH] Update js again for offcanvas need text() and remove Stafford's text from match --- js/app.js | 8 ++++---- js/custom/pageSetup.js | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/js/app.js b/js/app.js index ecf19a1..6bbff5a 100644 --- a/js/app.js +++ b/js/app.js @@ -148,13 +148,13 @@ $(document).ready(function () { $('.res-buttonOff').on('click', function () { adults = "adults=" + $("#adultsOff").val() + "&"; kids = "children=" + $("#kidsOff").val(); - if ($('#propertyNameOff option:selected').val() === "Stafford's Bay View Inn") { + if ($('#propertyNameOff option:selected').text() === "Bay View Inn") { window.open("https://www.bookonthenet.net/east/premium/eresmain.aspx?id=" + bayView + start + stay + adults + kids); - } else if ($('#propertyNameOff option:selected').val() === "Stafford's Crooked River Lodge") { + } else if ($('#propertyNameOff option:selected').text() === "Crooked River Lodge") { window.open("https://www.bookonthenet.net/east/premium/eresmain.aspx?id=" + crookedRiver + start + stay + adults + kids); - } else if ($('#propertyNameOff option:selected').val() === "Stafford's Perry Hotel") { + } else if ($('#propertyNameOff option:selected').text() === "Perry Hotel") { window.open("https://www.bookonthenet.net/east/premium/eresmain.aspx?id=" + perry + start + stay + adults + kids); - } else if ($('#propertyName option:selected').val() === "Property") { + } else if ($('#propertyName option:selected').text() === "Property") { alert("Please Select a Property"); } }); diff --git a/js/custom/pageSetup.js b/js/custom/pageSetup.js index d2192d0..33467bf 100644 --- a/js/custom/pageSetup.js +++ b/js/custom/pageSetup.js @@ -139,13 +139,13 @@ $(document).ready(function () { $('.res-buttonOff').on('click', function () { adults = "adults=" + $("#adultsOff").val() + "&"; kids = "children=" + $("#kidsOff").val(); - if ($('#propertyNameOff option:selected').val() === "Stafford's Bay View Inn") { + if ($('#propertyNameOff option:selected').text() === "Bay View Inn") { window.open("https://www.bookonthenet.net/east/premium/eresmain.aspx?id=" + bayView + start + stay + adults + kids); - } else if ($('#propertyNameOff option:selected').val() === "Stafford's Crooked River Lodge") { + } else if ($('#propertyNameOff option:selected').text() === "Crooked River Lodge") { window.open("https://www.bookonthenet.net/east/premium/eresmain.aspx?id=" + crookedRiver + start + stay + adults + kids); - } else if ($('#propertyNameOff option:selected').val() === "Stafford's Perry Hotel") { + } else if ($('#propertyNameOff option:selected').text() === "Perry Hotel") { window.open("https://www.bookonthenet.net/east/premium/eresmain.aspx?id=" + perry + start + stay + adults + kids); - } else if ($('#propertyName option:selected').val() === "Property") { + } else if ($('#propertyName option:selected').text() === "Property") { alert("Please Select a Property"); } }); -- 2.17.1