From: Laury GvR Date: Fri, 7 Dec 2018 19:17:05 +0000 (-0500) Subject: Remove duplicate initMap() function call from front list view file X-Git-Tag: v2.11.0^2~44 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=69b590149d35ef90ac591c2c0844c53a29117594;p=WP-Plugins%2Fglm-member-db.git Remove duplicate initMap() function call from front list view file --- diff --git a/views/front/members/list.html b/views/front/members/list.html index f0fedf91..65857cf8 100755 --- a/views/front/members/list.html +++ b/views/front/members/list.html @@ -574,6 +574,8 @@ function initMap() { + console.log("e - "); + var leafletMap = L.map('LeafletMapContainer', { gestureHandling: true }); @@ -650,7 +652,7 @@ leafletMap.panTo(leafletMap.unproject(px),{ animate: true }); }); - + console.log("r - "); } {/if} @@ -792,12 +794,11 @@ } }); {if $view != 'no-map'} - {if $settings.list_map_show_opened } + {if $settings.list_map_show_opened || $view == 'map'} // Start with map opened initMap(); mapInitialized = true; {/if} - initMap(); {/if} // Processes click-through counts for website links