Mercurial > dive4elements > river
changeset 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 | f51c943c707a |
children | ef99781bcec7 |
files | gwt-client/src/main/java/org/dive4elements/river/client/client/ui/chart/ChartToolbar.java |
diffstat | 1 files changed, 6 insertions(+), 1 deletions(-) [+] |
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" +