Ver Fonte

Ticket #4558 - Build-in API support: Undo the change (53ed761).

AntonLV há 1 ano atrás
pai
commit
58dcd57c57
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      template/location_field_google.html

+ 1 - 1
template/location_field_google.html

@@ -193,7 +193,7 @@
     }
     }
     
     
     $(document).ready(function () {        
     $(document).ready(function () {        
-        if ('undefined' === typeof(google.maps))
+        if ('undefined' === typeof(google))
             bx_get_scripts(['https://maps.google.com/maps/api/js?libraries=places&language=__lang__&key=__key__'], fInitCallback);
             bx_get_scripts(['https://maps.google.com/maps/api/js?libraries=places&language=__lang__&key=__key__'], fInitCallback);
         else
         else
             fInitCallback();
             fInitCallback();