Mercurial > lada > lada-client
comparison app/model/Staat.js @ 307:5f373d9d55cd
Use ts2date function from lib.Helpers. Remove old code
author | Torsten Irländer <torsten.irlaender@intevation.de> |
---|---|
date | Fri, 09 Aug 2013 15:24:00 +0200 |
parents | e9fb4814153a |
children | dd939a09e4dd |
comparison
equal
deleted
inserted
replaced
306:5e4d926d7717 | 307:5f373d9d55cd |
---|---|
1 Ext.define('Lada.model.Staat', { | 1 Ext.define('Lada.model.Staat', { |
2 extend: 'Ext.data.Model', | 2 extend: 'Ext.data.Model', |
3 requires: ['Lada.lib.Helpers'], | |
3 fields: [ | 4 fields: [ |
4 {name: "staatId", type: 'int'}, | 5 {name: "staatId", type: 'int'}, |
5 {name: "staat"}, | 6 {name: "staat"}, |
6 {name: "staatIso"}, | 7 {name: "staatIso"}, |
7 {name: "staatKurz"} | 8 {name: "staatKurz"} |
17 type: 'json', | 18 type: 'json', |
18 root: 'data' | 19 root: 'data' |
19 } | 20 } |
20 } | 21 } |
21 }); | 22 }); |
22 | |
23 function ts2date(v, record){ | |
24 // Converts a timestamp into a date object. | |
25 return new Date(v); | |
26 } |