[freeside-commits] branch FREESIDE_4_BRANCH updated. e08dadf140700d2beddb9ef8b99e6c85ed77edad

Jonathan Prykop jonathan at 420.am
Tue Dec 20 12:42:00 PST 2016


The branch, FREESIDE_4_BRANCH has been updated
       via  e08dadf140700d2beddb9ef8b99e6c85ed77edad (commit)
      from  30834b220686f7b751c25a43ad920a45c2e00b3e (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit e08dadf140700d2beddb9ef8b99e6c85ed77edad
Author: Jonathan Prykop <jonathan at freeside.biz>
Date:   Tue Dec 20 14:38:36 2016 -0600

    73107: Map regression: now always requiring API key [show instructions during directions lookup error]

diff --git a/httemplate/view/directions.html b/httemplate/view/directions.html
index 8377d12..1c99cda 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%>;
     }
   });
 }

-----------------------------------------------------------------------

Summary of changes:
 httemplate/view/directions.html |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)




More information about the freeside-commits mailing list