Update js live call to on
authorSteve Sutton <steve@gaslightmedia.com>
Tue, 19 Feb 2019 18:46:25 +0000 (13:46 -0500)
committerLaury GvR <laury@gaslightmedia.com>
Wed, 27 Feb 2019 16:25:47 +0000 (11:25 -0500)
Replacing live call with on.

js/leaflet-area-map.js

index 90c2a14..642dc21 100644 (file)
@@ -351,7 +351,7 @@ var GlmMap = {
             infoWindow.setContent(html);
             infoWindow.open(map, marker);
 
-            jQuery(".addToPlanner a:first").live('click', function() {
+            jQuery(".addToPlanner a:first").on('click', function() {
                 if (jQuery(this).text() == 'Add To Planner') {
                     jQuery.get(jQuery(this).attr('href'));
                     jQuery(".addToPlanner a:first").hide();