diff app/model/Messwert.js @ 574:8d2cf853eed2

merged.
author Raimund Renkert <raimund.renkert@intevation.de>
date Tue, 10 Mar 2015 14:33:03 +0100
parents 7a163f7ad5d8
children c07419f07a0c c5b8896768a2
line wrap: on
line diff
--- a/app/model/Messwert.js	Tue Mar 10 14:31:32 2015 +0100
+++ b/app/model/Messwert.js	Tue Mar 10 14:33:03 2015 +0100
@@ -39,9 +39,9 @@
         type: 'date',
         convert: function(v) {
             if (!v) {
-                return v;
+                return new Date();
             }
-            return new Date();
+            return new Date(v);
         },
         defaultValue: new Date()
     }],
@@ -50,7 +50,7 @@
 
     proxy: {
         type: 'rest',
-        url: 'server/rest/messwert',
+        url: 'lada-server/messwert',
         reader: {
             type: 'json',
             root: 'data'

http://lada.wald.intevation.org