comparison gwt-client/src/main/java/org/dive4elements/river/client/client/ui/chart/ChartToolbar.java @ 6222:595f673f8a45

Fix AT export icon and file name after a km change
author Andre Heinecke <aheinecke@intevation.de>
date Wed, 05 Jun 2013 18:53:04 +0200
parents ea9eef426962
children 2098ac94bebc
comparison
equal deleted inserted replaced
6221:97339d3955d7 6222:595f673f8a45
116 String moduleUrl = GWT.getModuleBaseURL(); 116 String moduleUrl = GWT.getModuleBaseURL();
117 Config config = Config.getInstance(); 117 Config config = Config.getInstance();
118 118
119 if (chartTab.getMode().getName().equals("fix_wq_curve")) { 119 if (chartTab.getMode().getName().equals("fix_wq_curve")) {
120 exportAT = new ImgLink( 120 exportAT = new ImgLink(
121 baseUrl + MSG.downloadCSV(), 121 baseUrl + MSG.downloadAT(),
122 moduleUrl + "export" + 122 moduleUrl + "export" +
123 "?uuid=" + chartTab.getCollection().identifier() + 123 "?uuid=" + chartTab.getCollection().identifier() +
124 "&name=" + chartTab.getMode().getName() + 124 "&name=" + chartTab.getMode().getName() +
125 "&mode=" + chartTab.getMode().getName() + "_at_export" + 125 "&mode=" + chartTab.getMode().getName() + "_at_export" +
126 "&type=at" + 126 "&type=at" +
333 333
334 if (chartTab.getMode().getName().equals("fix_wq_curve")) { 334 if (chartTab.getMode().getName().equals("fix_wq_curve")) {
335 exportAT.setSource( 335 exportAT.setSource(
336 moduleUrl + "export" + 336 moduleUrl + "export" +
337 "?uuid=" + chartTab.getCollection().identifier() + 337 "?uuid=" + chartTab.getCollection().identifier() +
338 "&name=" + chartTab.getMode().getName() +
338 "&mode=" + chartTab.getMode().getName() + "_at_export" + 339 "&mode=" + chartTab.getMode().getName() + "_at_export" +
339 "&type=at" + 340 "&type=at" +
340 "&server=" + config.getServerUrl() + 341 "&server=" + config.getServerUrl() +
341 "&locale=" + config.getLocale() + 342 "&locale=" + config.getLocale() +
342 "&km=" + chartTab.getCollectionView().getCurrentKm()); 343 "&km=" + chartTab.getCollectionView().getCurrentKm());

http://dive4elements.wald.intevation.org