Mercurial > lada > lada-client
comparison 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 |
comparison
equal
deleted
inserted
replaced
592:825973ca386f | 593:9b3adfb7b1ae |
---|---|
15 fields: [{ | 15 fields: [{ |
16 name: 'id' | 16 name: 'id' |
17 }, { | 17 }, { |
18 name: 'messungsId' | 18 name: 'messungsId' |
19 }, { | 19 }, { |
20 name: 'erzeuger' | |
21 }, { | |
20 name: 'status' | 22 name: 'status' |
21 }, { | 23 }, { |
22 name: 'sdatum' | 24 name: 'sdatum', |
25 type: 'date', | |
26 convert: function(v) { | |
27 if (!v) { | |
28 return v; | |
29 } | |
30 return new Date(v); | |
31 }, | |
32 defaultValue: new Date() | |
23 }, { | 33 }, { |
24 name: 'skommentar' | 34 name: 'skommentar' |
25 }], | 35 }], |
26 | 36 |
27 idProperty: 'id', | 37 idProperty: 'id', |