comparison app/model/Kommentar.js @ 107:84f32c62670f

Added form to create kommentare
author Torsten Irländer <torsten.irlaender@intevation.de>
date Wed, 19 Jun 2013 11:43:25 +0200
parents 8356595f4fdb
children 7b1140bd8b3d
comparison
equal deleted inserted replaced
106:b91d5376db19 107:84f32c62670f
4 {name: "id"}, 4 {name: "id"},
5 {name: "kid", mapping:"id.kid"}, 5 {name: "kid", mapping:"id.kid"},
6 {name: "convertedId", convert:buildId}, 6 {name: "convertedId", convert:buildId},
7 {name: "probeId"}, 7 {name: "probeId"},
8 {name: "erzeuger"}, 8 {name: "erzeuger"},
9 {name: "kdatum"}, 9 {name: "kdatum", type: 'date', convert: ts2date, defaultValue: new Date()},
10 {name: "ktext"} 10 {name: "ktext"}
11 ], 11 ],
12 idProperty: "convertedId", 12 idProperty: "convertedId",
13 proxy: { 13 proxy: {
14 type: 'rest', 14 type: 'rest',
22 }); 22 });
23 23
24 function buildId(v, record){ 24 function buildId(v, record){
25 return record.get('probeId') + record.get('kid'); 25 return record.get('probeId') + record.get('kid');
26 } 26 }
27
28 function ts2date(v, record){
29 // Converts a timestamp into a date object.
30 return new Date(v);
31 }

http://lada.wald.intevation.org