We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 94253d4 commit 5561a70Copy full SHA for 5561a70
web/extras/components/documentlibrary/geotag-action.js
@@ -1,3 +1,7 @@
1
+function gmaps_init() {
2
+ // Do nothing
3
+}
4
+
5
/**
6
* Document library Geotag action
7
*
@@ -18,6 +22,14 @@
18
22
var $html = Alfresco.util.encodeHTML,
19
23
$combine = Alfresco.util.combinePaths;
20
24
25
+ // Async handler to bring in Google Maps scripts
26
+ Event.onDOMReady(function geotag_gmapsInit() {
27
+ var script = document.createElement("script");
28
+ script.type = "text/javascript";
29
+ script.src = "http://maps.google.com/maps/api/js?sensor=false&callback=gmaps_init";
30
+ document.body.appendChild(script);
31
+ });
32
21
33
34
* Geotag a document.
35
0 commit comments