# HG changeset patch # User Ingo Weinzierl # Date 1329470794 0 # Node ID ea6065c2dabee6d765470e392036cae5036c2fd4 # Parent c837669643acd6305bfa06fc66b92b51dc59f8f2 Removed server url from chart image link. flys-client/trunk@4072 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r c837669643ac -r ea6065c2dabe flys-client/ChangeLog --- a/flys-client/ChangeLog Fri Feb 17 09:25:10 2012 +0000 +++ b/flys-client/ChangeLog Fri Feb 17 09:26:34 2012 +0000 @@ -1,3 +1,9 @@ +2012-02-17 Ingo Weinzierl + + * src/main/java/de/intevation/flys/client/client/ui/chart/ChartOutputTab.java: + Removed the server URL provided by Config. The URL is no longer + required since it is configured in web.xml. + 2012-02-17 Ingo Weinzierl * src/main/java/de/intevation/flys/client/server/ChartOutputServiceImpl.java: diff -r c837669643ac -r ea6065c2dabe flys-client/src/main/java/de/intevation/flys/client/client/ui/chart/ChartOutputTab.java --- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/chart/ChartOutputTab.java Fri Feb 17 09:25:10 2012 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/chart/ChartOutputTab.java Fri Feb 17 09:26:34 2012 +0000 @@ -578,7 +578,6 @@ imgUrl += "chart"; imgUrl += "?uuid=" + collection.identifier(); imgUrl += "&type=" + mode.getName(); - imgUrl += "&server=" + config.getServerUrl(); imgUrl += "&locale=" + config.getLocale(); imgUrl += "×tamp=" + new Date().getTime(); imgUrl += "&width=" + Integer.toString(width); @@ -593,6 +592,7 @@ imgUrl += "&minx=" + zoom[0]; imgUrl += "&maxx=" + zoom[1]; } + if (zoom[2].intValue() != 0 || zoom[3].intValue() != 1) { // a zoom range of 0-1 means displaying the whole range. In such // case we don't need to zoom.