Member detail map view button now appropriately says 'hide map' by default
authorLaury GvR <laury@gaslightmedia.com>
Mon, 17 Dec 2018 16:46:52 +0000 (11:46 -0500)
committerLaury GvR <laury@gaslightmedia.com>
Mon, 17 Dec 2018 16:46:56 +0000 (11:46 -0500)
glm-member-db/views/front/members/detail.html

index dd44848..41f7b9e 100644 (file)
                         <div id="glm-locationMap" class="glm-map glmgrid-small-12 glmgrid-columns">(map loads here)</div>
         {/if}   
                     </div>
-                    <div id="glm-member-detail-map-button" class="button map-button">view map</div>
+                    <div id="glm-member-detail-map-button" class="button map-button">hide map</div>
 
                         <div id="member-lat" rel="{$member.lat}"></div>
                         <div id="member-lon" rel="{$member.lon}"></div>
 
             });
 
-            // Automatically zoom and expand the relevant
+            // Automatically zoom and expand the given section
             $('html').addClass('glmassociatememberdetail glmassociatetop');
             if ("{$expanded}" != "") {
                 var expandTarget = "glm-member-detail-{$expanded}";
             }
 
             $("a.glm-member-detail-images-thumb").fancybox({
-
                  helpers: {
                     overlay: { locked: false },
                      title: { type: 'inside'},
                 }, 500);
             });
 
-            // Open the following sections by default
             if ($(window).width() >= 1024) {
+                // Open the following sections by default
                 $(".glm-member-detail-content-data").slideToggle("fast", "swing",  function() {});
                 $(".glm-member-detail-content-toggle").toggleClass("selected");
             }