Mercurial > dive4elements > river
changeset 8644:c15cebcf60da
Remove JavaScript greeting exception.
This fixes the Error "$wnd.unHighlight" is not a function
exception at startup. This apperantly did not do anything
(as the function does not exist) and was not necessary
(as everything works as expected) So just throw it away.
author | Andre Heinecke <andre.heinecke@intevation.de> |
---|---|
date | Fri, 27 Mar 2015 19:10:02 +0100 |
parents | 999b9ab16738 |
children | 5c4766ac20ba |
files | gwt-client/src/main/java/org/dive4elements/river/client/client/ui/LinkSelection.java |
diffstat | 1 files changed, 0 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/gwt-client/src/main/java/org/dive4elements/river/client/client/ui/LinkSelection.java Fri Mar 27 18:59:27 2015 +0100 +++ b/gwt-client/src/main/java/org/dive4elements/river/client/client/ui/LinkSelection.java Fri Mar 27 19:10:02 2015 +0100 @@ -243,7 +243,6 @@ item.setVisible(true); if (selected != null && !selected.equals(river)) { riverHighlight.get(selected).setVisible(false); - callUnHighlightRiver(selected); } callHighlightRiver(river); selected = river; @@ -322,16 +321,11 @@ $wnd.highlight(name); }-*/; - private native void callUnHighlightRiver(String name) /*-{ - $wnd.unHighlight(name); - }-*/; - @Override public void onVisibilityChanged(VisibilityChangedEvent event) { for (Map.Entry<String, Img> entry: riverHighlight.entrySet()) { entry.getValue().setVisible(false); - callUnHighlightRiver(entry.getKey()); } selected = null; }