Mercurial > dive4elements > river
diff gwt-client/src/main/java/org/dive4elements/river/client/client/ui/chart/ChartToolbar.java @ 7606:424c3d84e119
(issue1666) Update CSV link in updateLinks, too
author | Andre Heinecke <aheinecke@intevation.de> |
---|---|
date | Wed, 27 Nov 2013 18:06:04 +0100 |
parents | 2098ac94bebc |
children | 11bc2d6a2059 |
line wrap: on
line diff
--- a/gwt-client/src/main/java/org/dive4elements/river/client/client/ui/chart/ChartToolbar.java Wed Nov 27 17:17:54 2013 +0100 +++ b/gwt-client/src/main/java/org/dive4elements/river/client/client/ui/chart/ChartToolbar.java Wed Nov 27 18:06:04 2013 +0100 @@ -42,7 +42,7 @@ protected ImgLink downloadPNG; protected ImgLink downloadPDF; protected ImgLink downloadSVG; - protected Canvas downloadCSV; + protected ImgLink downloadCSV; protected MousePositionPanel position; protected ZoomboxControl zoombox; protected ImgButton zoomToMaxExtent; @@ -331,6 +331,11 @@ String moduleUrl = GWT.getModuleBaseURL(); Config config = Config.getInstance(); + // make sure that the current km is set correctly + // for the other buttons this is handled by onZoom + downloadCSV.setSource( + chartTab.getExportUrl(-1, -1, "csv", "windows-1252")); + if (chartTab.getMode().getName().equals("fix_wq_curve")) { exportAT.setSource( moduleUrl + "export" +