From 8228ccc7969efe11a9e8a91e4f6622962d1e6bdb Mon Sep 17 00:00:00 2001 From: Laury GvR Date: Tue, 2 May 2017 14:16:08 -0400 Subject: [PATCH] Function to update map also ran when View Map button is clicked on member info edit page --- views/admin/member/memberInfo.html | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/views/admin/member/memberInfo.html b/views/admin/member/memberInfo.html index ffd9ecba..9ce647f4 100644 --- a/views/admin/member/memberInfo.html +++ b/views/admin/member/memberInfo.html @@ -626,8 +626,9 @@ if ($(mapC).height() == 0) { mapNewH = 400; mapV = 'visible'; - mapBtnTxt = 'Hide Map' + mapBtnTxt = 'Hide Map'; } + initMap(); $(mapC).animate({ overflow: mapOverflow, height: mapNewH @@ -689,7 +690,10 @@ }); // 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(); @@ -727,7 +731,7 @@ } }); - }); + } } -- 2.17.1