[PATCH] Fixed river selection for interactive map

Wald Commits scm-commit at wald.intevation.org
Fri Jun 20 13:46:02 CEST 2014


# HG changeset patch
# User Raimund Renkert <rrenkert at intevation.de>
# Date 1403264754 -7200
# Node ID 8e320b5933dea471672ff2c2624a0fbedb8cdcd1
# Parent  632c724fed2dcc8d65e43c93e96069982d295f5e
Fixed river selection for interactive map.

diff -r 632c724fed2d -r 8e320b5933de gwt-client/src/main/java/org/dive4elements/river/client/client/ui/LinkSelection.java
--- a/gwt-client/src/main/java/org/dive4elements/river/client/client/ui/LinkSelection.java	Fri Jun 20 12:51:08 2014 +0200
+++ b/gwt-client/src/main/java/org/dive4elements/river/client/client/ui/LinkSelection.java	Fri Jun 20 13:45:54 2014 +0200
@@ -186,6 +186,7 @@
             int counter = 0;
             for (DataItem item: d.getItems()) {
                 HLayout row = new HLayout();
+                row.setTitle(item.getLabel());
                 LinkItem link = new LinkItem("river");
                 link.setHoverDelay(0);
                 link.setLinkTitle(item.getLabel());
@@ -312,7 +313,8 @@
 
     private static void selectCallback(String name) {
         if (availableRiver(name)) {
-            trigger.trigger(name);
+            String river = riverList.get(name).getTitle();
+            trigger.trigger(river);
         }
     }
 


More information about the Dive4Elements-commits mailing list