From 5b0d65303bc7096bce078f7a8070baa29075f368 Mon Sep 17 00:00:00 2001 From: Laury GvR Date: Tue, 2 May 2017 14:58:08 -0400 Subject: [PATCH] Functions to update the map when clicking View Map on the admin member edit page were called incorrectly --- views/admin/member/memberInfo.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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(); -- 2.17.1