[PATCH] (issue1666) Update CSV link in updateLinks, too
Wald Commits
scm-commit at wald.intevation.org
Wed Nov 27 18:06:09 CET 2013
# HG changeset patch
# User Andre Heinecke <aheinecke at intevation.de>
# Date 1385571964 -3600
# Node ID 424c3d84e119fb16b3910ae8d9d67271788adb3e
# Parent f51c943c707a59feceaf948f30494a21acd80730
(issue1666) Update CSV link in updateLinks, too
diff -r f51c943c707a -r 424c3d84e119 gwt-client/src/main/java/org/dive4elements/river/client/client/ui/chart/ChartToolbar.java
--- 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" +
More information about the Dive4elements-commits
mailing list