[Dive4elements-commits] [PATCH 1 of 3] Only select available rivers in interactive image map

Wald Commits scm-commit at wald.intevation.org
Fri May 10 11:41:54 CEST 2013


# HG changeset patch
# User Raimund Renkert <rrenkert at intevation.de>
# Date 1368178831 -7200
# Node ID b2e6a90ba0e61e1cec20c15004464c5603aa543f
# Parent  e9e298724f03a6a51ee4645249db7ceaef549baa
Only select available rivers in interactive image map.

diff -r e9e298724f03 -r b2e6a90ba0e6 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 May 10 11:29:29 2013 +0200
+++ b/gwt-client/src/main/java/org/dive4elements/river/client/client/ui/LinkSelection.java	Fri May 10 11:40:31 2013 +0200
@@ -303,7 +303,11 @@
     }
 
     private static void selectCallback(String name) {
-        trigger.trigger(name);
+        if (rivers.containsKey(name)) {
+            if (rivers.get(name).isVisible()) {
+                trigger.trigger(name);
+            }
+        }
     }
 
     private native void callHighlightRiver(String name) /*-{


More information about the Dive4elements-commits mailing list