diff app/model/Status.js @ 593:9b3adfb7b1ae

Updated status model.
author Raimund Renkert <raimund.renkert@intevation.de>
date Thu, 12 Mar 2015 09:45:52 +0100
parents d9593b520b3b
children c07419f07a0c c5b8896768a2
line wrap: on
line diff
--- a/app/model/Status.js	Thu Mar 12 09:44:47 2015 +0100
+++ b/app/model/Status.js	Thu Mar 12 09:45:52 2015 +0100
@@ -17,9 +17,19 @@
     }, {
         name: 'messungsId'
     }, {
+        name: 'erzeuger'
+    }, {
         name: 'status'
     }, {
-        name: 'sdatum'
+        name: 'sdatum',
+        type: 'date',
+        convert: function(v) {
+            if (!v) {
+                return v;
+            }
+            return new Date(v);
+        },
+        defaultValue: new Date()
     }, {
         name: 'skommentar'
     }],

http://lada.wald.intevation.org