summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Prykop <jonathan@freeside.biz>2016-12-20 14:38:36 -0600
committerJonathan Prykop <jonathan@freeside.biz>2016-12-20 14:38:36 -0600
commit2eaa7b15a2ebd93b87d01330179244890ee227ba (patch)
tree1d6a119d632fad3acace0bdc22ec97b5c337494c
parent80bfc5e1b11694553ddaa48e3b181462cfadc9dd (diff)
73107: Map regression: now always requiring API key [show instructions during directions lookup error]
-rw-r--r--httemplate/view/directions.html3
1 files changed, 2 insertions, 1 deletions
diff --git a/httemplate/view/directions.html b/httemplate/view/directions.html
index 8377d129a..1c99cda94 100644
--- a/httemplate/view/directions.html
+++ b/httemplate/view/directions.html
@@ -62,7 +62,8 @@ function show_route() {
if ( status == google.maps.DirectionsStatus.OK ) {
directionsDisplay.setDirections(result);
} else {
- document.body.innerHTML = ('<P STYLE="color: red;">Directions lookup failed with the following error: '+status+'</P>');
+ document.body.innerHTML = ('<P STYLE="color: red;">Directions lookup failed with the following error: '+status+'</P>')
+ + <% include('/elements/google_maps_api_key.html' ) |js_string%>;
}
});
}