From be01304611909802edb71dd4845d6e283fae2c80 Mon Sep 17 00:00:00 2001 From: Michael Hall Date: Sun, 8 Apr 2018 12:02:23 -0400 Subject: [PATCH] Only use Google Place API to change the place name if a google place_id is available --- get_together/templates/get_together/places/create_place.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/get_together/templates/get_together/places/create_place.html b/get_together/templates/get_together/places/create_place.html index f452090..6520f05 100644 --- a/get_together/templates/get_together/places/create_place.html +++ b/get_together/templates/get_together/places/create_place.html @@ -71,9 +71,9 @@ city = this.long_name } }); - $("#id_name").val("") - $("#id_name").attr("placeholder", "Searching...") if (google_place_id != null) { + $("#id_name").val("") + $("#id_name").attr("placeholder", "Searching...") var places = new google.maps.places.PlacesService(map); places.getDetails({'placeId': google_place_id}, function(result, status) {