comparison gwt-client/src/main/java/org/dive4elements/river/client/client/ui/LinkSelection.java @ 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 8e320b5933de
children
comparison
equal deleted inserted replaced
8643:999b9ab16738 8644:c15cebcf60da
241 Img item = riverHighlight.get(river); 241 Img item = riverHighlight.get(river);
242 if (item != null) { 242 if (item != null) {
243 item.setVisible(true); 243 item.setVisible(true);
244 if (selected != null && !selected.equals(river)) { 244 if (selected != null && !selected.equals(river)) {
245 riverHighlight.get(selected).setVisible(false); 245 riverHighlight.get(selected).setVisible(false);
246 callUnHighlightRiver(selected);
247 } 246 }
248 callHighlightRiver(river); 247 callHighlightRiver(river);
249 selected = river; 248 selected = river;
250 } 249 }
251 } 250 }
320 319
321 private native void callHighlightRiver(String name) /*-{ 320 private native void callHighlightRiver(String name) /*-{
322 $wnd.highlight(name); 321 $wnd.highlight(name);
323 }-*/; 322 }-*/;
324 323
325 private native void callUnHighlightRiver(String name) /*-{
326 $wnd.unHighlight(name);
327 }-*/;
328
329 324
330 @Override 325 @Override
331 public void onVisibilityChanged(VisibilityChangedEvent event) { 326 public void onVisibilityChanged(VisibilityChangedEvent event) {
332 for (Map.Entry<String, Img> entry: riverHighlight.entrySet()) { 327 for (Map.Entry<String, Img> entry: riverHighlight.entrySet()) {
333 entry.getValue().setVisible(false); 328 entry.getValue().setVisible(false);
334 callUnHighlightRiver(entry.getKey());
335 } 329 }
336 selected = null; 330 selected = null;
337 } 331 }
338 } 332 }
339 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : 333 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org