From: Laury GvR Date: Tue, 2 May 2017 18:16:08 +0000 (-0400) Subject: Function to update map also ran when View Map button is clicked on member info edit... X-Git-Tag: v2.9.15^2~1^2~1 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=8228ccc7969efe11a9e8a91e4f6622962d1e6bdb;p=WP-Plugins%2Fglm-member-db.git Function to update map also ran when View Map button is clicked on member info edit page --- 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 @@ } }); - }); + } }