From: Laury GvR Date: Tue, 2 May 2017 18:58:08 +0000 (-0400) Subject: Functions to update the map when clicking View Map on the admin member edit page... X-Git-Tag: v2.9.15^2~1^2 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=5b0d65303bc7096bce078f7a8070baa29075f368;p=WP-Plugins%2Fglm-member-db.git Functions to update the map when clicking View Map on the admin member edit page were called incorrectly --- diff --git a/views/admin/member/memberInfo.html b/views/admin/member/memberInfo.html index 9ce647f4..9c8808d6 100644 --- a/views/admin/member/memberInfo.html +++ b/views/admin/member/memberInfo.html @@ -690,11 +690,11 @@ }); // When estimate location button is clicked, geocode using address - $('#glm-estimate-location').on('click', glmEstimateLocation()); - $('#locationMapToggle').on('click', glmEstimateLocation()); - function glmEstimateLocation() { + $(document).on('click','#locationMapToggle', glmEstimateLocation); + $(document).on('click','#glm-estimate-location', glmEstimateLocation); + function glmEstimateLocation() { // Get all address parts var geoAddr1 = $('#addr1').val().trim(); var geoAddr2 = $('#addr2').val().trim();