From 184b25f5deeee3e4fdbe1fc196877a4089d6b5db Mon Sep 17 00:00:00 2001
From: Piotr Gawron <piotr.gawron@uni.lu>
Date: Thu, 24 May 2018 10:06:41 +0200
Subject: [PATCH] link to google license is opened in new tab

---
 frontend-js/src/main/js/gui/leftPanel/OverlayPanel.js           | 2 +-
 frontend-js/src/main/js/minerva.js                              | 2 +-
 .../lcsb/mapviewer/model/user/ConfigurationElementType.java     | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/frontend-js/src/main/js/gui/leftPanel/OverlayPanel.js b/frontend-js/src/main/js/gui/leftPanel/OverlayPanel.js
index 0598ec4fd8..b3a1a1a942 100644
--- a/frontend-js/src/main/js/gui/leftPanel/OverlayPanel.js
+++ b/frontend-js/src/main/js/gui/leftPanel/OverlayPanel.js
@@ -234,7 +234,7 @@ OverlayPanel.prototype.openEditOverlayDialog = function (overlay) {
   var consentCheckbox = document.createElement("input");
   consentCheckbox.type = "checkbox";
   consentCheckbox.checked = overlay.isGoogleLicenseConsent();
-  row = guiUtils.createTableRow([guiUtils.createLabel("I am aware that this map is displayed under the terms of the <a href='https://cloud.google.com/maps-platform/terms/'>license of Google Maps Platform</a> and I agree to these terms. " +
+  row = guiUtils.createTableRow([guiUtils.createLabel("I am aware that this map is displayed under the terms of the <a href='https://cloud.google.com/maps-platform/terms/' target='_blank'>license of Google Maps Platform</a> and I agree to these terms. " +
     "In particular, I warrant that this dataset does not contain Protected Health Information (as defined in and subject to HIPAA). "), consentCheckbox]);
   content.appendChild(row);
 
diff --git a/frontend-js/src/main/js/minerva.js b/frontend-js/src/main/js/minerva.js
index 4496b71b6c..5d8ba60ef5 100644
--- a/frontend-js/src/main/js/minerva.js
+++ b/frontend-js/src/main/js/minerva.js
@@ -554,7 +554,7 @@ function create(params) {
     }
   }).then(function () {
     if (leftPanel.isGoogleLicenseConsentRequired()) {
-      GuiConnector.alert("Some data overlays doesn't have consent to the terms of the <a href='https://cloud.google.com/maps-platform/terms/'>license of Google Maps Platform</a>. To be able to visualize them you must edit data overlay. ")
+      GuiConnector.alert("Some data overlays doesn't have consent to the terms of the <a href='https://cloud.google.com/maps-platform/terms/' target='_blank'>license of Google Maps Platform</a>. To be able to visualize them you must edit data overlay. ")
     }
     var result = createResult(customMap);
 
diff --git a/model/src/main/java/lcsb/mapviewer/model/user/ConfigurationElementType.java b/model/src/main/java/lcsb/mapviewer/model/user/ConfigurationElementType.java
index 932dfcc8e0..e38e7d1c1d 100644
--- a/model/src/main/java/lcsb/mapviewer/model/user/ConfigurationElementType.java
+++ b/model/src/main/java/lcsb/mapviewer/model/user/ConfigurationElementType.java
@@ -160,7 +160,7 @@ public enum ConfigurationElementType {
   SHOW_REACTION_TYPE("Don't touch [12.0.x compatibility]", "true", ConfigurationElementEditType.STRING, true),
 
   GOOGLE_MAPS_API_KEY("By providing this Google Maps Platform API key I declare that I am aware that "
-      + "I am a Customer of the Google Maps Platform and I agree to the terms of the <a href=\"https://cloud.google.com/maps-platform/terms/\">license of Google Maps Platform</a>." + 
+      + "I am a Customer of the Google Maps Platform and I agree to the terms of the <a href=\"https://cloud.google.com/maps-platform/terms/\"  target='_blank'>license of Google Maps Platform</a>." + 
       "In particular, I warrant that neither any of the maps nor publicly available data overlays "
       + "(\"General overlays\") on this MINERVA server contain Protected Health Information (as defined in and subject to HIPAA).", 
       "", ConfigurationElementEditType.STRING, false),
-- 
GitLab