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:41:28 -0600
commite08dadf140700d2beddb9ef8b99e6c85ed77edad (patch)
tree917674df878c7d8511e1c6a31a53026ed9d0dd63
parent30834b220686f7b751c25a43ad920a45c2e00b3e (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%>;
}
});
}