Fix duplicate call to initMap() in custom member db list view file
authorLaury GvR <laury@gaslightmedia.com>
Fri, 7 Dec 2018 19:22:19 +0000 (14:22 -0500)
committerLaury GvR <laury@gaslightmedia.com>
Fri, 7 Dec 2018 19:22:19 +0000 (14:22 -0500)
glm-member-db/views/front/members/list.html

index 1ea731a..bc25e7d 100644 (file)
                 }
             });
             {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