changeset 4137:9be8d7942284

Open gauge and river info in a new browser window Fix for issue #918
author Björn Ricks <bjoern.ricks@intevation.de>
date Mon, 15 Oct 2012 15:23:13 +0200
parents b6ba9bbb5122
children 947d79b9c675
files flys-client/ChangeLog flys-client/src/main/java/de/intevation/flys/client/client/ui/GaugePanel.java flys-client/src/main/java/de/intevation/flys/client/client/ui/GaugeTree.java
diffstat 3 files changed, 9 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/flys-client/ChangeLog	Mon Oct 15 14:52:57 2012 +0200
+++ b/flys-client/ChangeLog	Mon Oct 15 15:23:13 2012 +0200
@@ -1,3 +1,10 @@
+2012-10-15	Björn Ricks	<bjoern.ricks@intevation.de>
+
+	* src/main/java/de/intevation/flys/client/client/ui/GaugePanel.java,
+	  src/main/java/de/intevation/flys/client/client/ui/GaugeTree.java:
+	  Open gauge and river info links in a new browser window
+	  Fix for issue #918
+
 2012-10-15	Christian Lins	<christian.lins@intevation.de>
 
 	* flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants.java,
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/GaugePanel.java	Mon Oct 15 14:52:57 2012 +0200
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/GaugePanel.java	Mon Oct 15 15:23:13 2012 +0200
@@ -198,7 +198,7 @@
             String url = number != null ?
                 MSG.gauge_river_url() + number :
                 MSG.gauge_river_url();
-            Anchor anchor = new Anchor(MSG.gauge_river_info_link(), url);
+            Anchor anchor = new Anchor(MSG.gauge_river_info_link(), url, "_blank");
             add(anchor);
         }
 
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/GaugeTree.java	Mon Oct 15 14:52:57 2012 +0200
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/GaugeTree.java	Mon Oct 15 15:23:13 2012 +0200
@@ -396,7 +396,7 @@
             String url = number != null ?
                 MSG.gauge_url() + number :
                 MSG.gauge_url();
-            Anchor anchor = new Anchor(MSG.gauge_info_link(), url);
+            Anchor anchor = new Anchor(MSG.gauge_info_link(), url, "_blank");
             addMember(anchor);
 
             addMember(new GaugeCurveAnchor(flys, gauge));

http://dive4elements.wald.intevation.org