Function to update map also ran when View Map button is clicked on member info edit...
authorLaury GvR <laury@gaslightmedia.com>
Tue, 2 May 2017 18:16:08 +0000 (14:16 -0400)
committerLaury GvR <laury@gaslightmedia.com>
Tue, 2 May 2017 18:16:08 +0000 (14:16 -0400)
views/admin/member/memberInfo.html

index ffd9ecb..9ce647f 100644 (file)
                 if ($(mapC).height() == 0) {
                     mapNewH = 400;
                     mapV = 'visible';
-                    mapBtnTxt = 'Hide Map'
+                    mapBtnTxt = 'Hide Map';
                 }
+                initMap();
                 $(mapC).animate({
                     overflow: mapOverflow,
                     height: mapNewH
                 });
 
                 // When estimate location button is clicked, geocode using address
-                $('#glm-estimate-location').on('click', function() {
+                $('#glm-estimate-location').on('click', glmEstimateLocation());
+                $('#locationMapToggle').on('click', glmEstimateLocation());
+
+                function glmEstimateLocation() {
 
                     // Get all address parts
                     var geoAddr1 = $('#addr1').val().trim();
                         }
                     });
 
-                });
+                }
 
             }