Update js again
authorSteve Sutton <steve@gaslightmedia.com>
Fri, 20 Jul 2018 12:04:17 +0000 (08:04 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Fri, 20 Jul 2018 12:04:17 +0000 (08:04 -0400)
for offcanvas
need text() and remove Stafford's text from match

js/app.js
js/custom/pageSetup.js

index ecf19a1..6bbff5a 100644 (file)
--- 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");
         }
     });
index d2192d0..33467bf 100644 (file)
@@ -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");
         }
     });