Skip to content

Commit 7621c87

Browse files
author
Sacha Trauwaen
committed
remove google map deprecations in template settings
1 parent 07bab67 commit 7621c87

File tree

6 files changed

+6
-5
lines changed

6 files changed

+6
-5
lines changed

OpenContent/Components/Alpaca/AlpacaEngine.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ private void RegisterFields(bool bootstrap)
204204
if (allFields || fieldTypes.Contains("address") || fieldTypes.Contains("mladdress"))
205205
{
206206
string apikey = App.Services.CreateGlobalSettingsRepository(PortalId).GetGoogleApiKey();
207-
ClientResourceManager.RegisterScript(Page, "//maps.googleapis.com/maps/api/js?v=3.exp&libraries=places" + (string.IsNullOrEmpty(apikey) ? "" : "&key=" + apikey), FileOrder.Js.DefaultPriority);
207+
ClientResourceManager.RegisterScript(Page, "//maps.googleapis.com/maps/api/js?loading=async&libraries=places" + (string.IsNullOrEmpty(apikey) ? "" : "&key=" + apikey), FileOrder.Js.DefaultPriority);
208208
}
209209
if (allFields || fieldTypes.ContainsAny("imagecropper", "imagecrop", "imagecrop2", "imagex", "mlimagex"))
210210
{

OpenContent/OpenContent.csproj

+1
Original file line numberDiff line numberDiff line change
@@ -1282,6 +1282,7 @@
12821282
<Content Include="js\swagger\fonts\DroidSans-Bold.ttf" />
12831283
<Content Include="js\swagger\fonts\DroidSans.ttf" />
12841284
<Content Include="lama\src\components\CollectionField.vue" />
1285+
<Content Include="bundleconfig.json" />
12851286
<None Include="packages.config" />
12861287
<None Include="Scripts\_references.js" />
12871288
<Content Include="js\select2\select2.css" />

OpenContent/alpaca/js/fields/dnn/AddressField.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@
245245
input.value = '';
246246

247247
});
248-
google.maps.event.addDomListener(input, 'keydown', function (e) {
248+
input.addEventListener('keydown', function (e) {
249249
if (e.keyCode == 13) {
250250
e.preventDefault();
251251
}

OpenContent/alpaca/js/fields/dnn/dnnfields.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@
245245
input.value = '';
246246

247247
});
248-
google.maps.event.addDomListener(input, 'keydown', function (e) {
248+
input.addEventListener('keydown', function (e) {
249249
if (e.keyCode == 13) {
250250
e.preventDefault();
251251
}

OpenContent/alpaca/js/fields/dnn/dnnfields.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

OpenContent/alpaca/templates/dnn-edit/dnntemplates.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -418,4 +418,4 @@ <h4 class="panel-title pull-left">
418418
{{/compare}}
419419
{{/compare}}
420420
</div>
421-
</script>
421+
</script>

0 commit comments

Comments
 (0)