Mercurial > dive4elements > river
changeset 5389:6ff45b7b834c
Part of flys/issue1183: Default from/to date form fields (not yet working for from).
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Fri, 22 Mar 2013 12:33:28 +0100 |
parents | 5ace307430bf |
children | d449b502602b |
files | flys-client/src/main/java/de/intevation/flys/client/client/ui/GaugeTimeRangePanel.java |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/GaugeTimeRangePanel.java Fri Mar 22 12:32:48 2013 +0100 +++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/GaugeTimeRangePanel.java Fri Mar 22 12:33:28 2013 +0100 @@ -131,6 +131,12 @@ if(data != null) { GWT.log("data: " + data); } + + // TODO understand why this does get set too late + if (getMaxLower() != null) + dateRange.setFromDate(new Date((Long)getMaxLower())); + + dateRange.setToDate(new Date()); }