From 95d46f36337988d9ae6e69e7dacba142ff969234 Mon Sep 17 00:00:00 2001 From: Skylar Ittner Date: Wed, 20 Apr 2022 14:00:16 -0600 Subject: [PATCH] Use server variables for client-size price calculation --- public/static/signup.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/static/signup.js b/public/static/signup.js index dec8e00..dd3eee6 100644 --- a/public/static/signup.js +++ b/public/static/signup.js @@ -81,11 +81,11 @@ $(".list-group").on("click", ".rmpersonbtn", function () { function updateTotal() { totalcharge = $(".person-list-item[data-persontype=camper] input[data-name=firstname]").filter(function () { return $(this).val() != ''; - }).length * 50.0; + }).length * prices.camp; totalcharge = totalcharge - $(".person-list-item[data-persontype=adult] input[data-name=days]:checked").filter(function () { return $(this).val() != ''; - }).length * 10.0; + }).length * prices.adult_volunteer_daily_discount; // Add charge for adult shirts totalcharge = totalcharge + $(".person-list-item[data-persontype=adult]").filter(function () {