From 531692b882094e90782fd6c5855673ec51a56430 Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Tue, 18 Dec 2018 09:51:50 -0500 Subject: [PATCH] Update list counter New area to update just a number this time. --- js/front.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/js/front.js b/js/front.js index cfba112..2473948 100644 --- a/js/front.js +++ b/js/front.js @@ -36,11 +36,12 @@ jQuery('.glm-planner-button').on('click', function(e){ } }); function updateList(listCount){ - if(listCount > 0) { - $(".trip-list-count").html(listCount + " item(s) in your trip planner"); - } else { - $(".trip-list-count").html("Make the most of your getaway!"); - } + $(".trip-counter").html( listCount ); + // if(listCount > 0) { + // $(".trip-list-count").html(listCount + " item(s) in your trip planner"); + // } else { + // $(".trip-list-count").html("Make the most of your getaway!"); + // } } jQuery('.glm-itinerary-request-delete').on('click', function(e){ e.preventDefault(); -- 2.17.1