[Dive4elements-commits] [PATCH 2 of 2] Part of flys/issue1183: Default from/to date form fields (not yet working for from)

Wald Commits scm-commit at wald.intevation.org
Mon Mar 25 09:48:36 CET 2013


# HG changeset patch
# User Felix Wolfsteller <felix.wolfsteller at intevation.de>
# Date 1363952008 -3600
# Node ID 6ff45b7b834c555d709e363be5a62cc5b81b871c
# Parent  5ace307430bf3ee459bb8899decbe60e6f09c3a7
Part of flys/issue1183: Default from/to date form fields (not yet working for from).

diff -r 5ace307430bf -r 6ff45b7b834c flys-client/src/main/java/de/intevation/flys/client/client/ui/GaugeTimeRangePanel.java
--- 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());
     }
 
 


More information about the Dive4elements-commits mailing list