Update list counter
authorSteve Sutton <steve@gaslightmedia.com>
Tue, 18 Dec 2018 14:51:50 +0000 (09:51 -0500)
committerSteve Sutton <steve@gaslightmedia.com>
Tue, 18 Dec 2018 14:51:50 +0000 (09:51 -0500)
New area to update
just a number this time.

js/front.js

index cfba112..2473948 100644 (file)
@@ -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();