From: Steve Sutton Date: Tue, 18 Dec 2018 14:51:50 +0000 (-0500) Subject: Update list counter X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=531692b882094e90782fd6c5855673ec51a56430;p=WP-Plugins%2Fglm-member-db-itinerary.git Update list counter New area to update just a number this time. --- 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();