Mercurial > lada > lada-client
changeset 299:fe199b8828a8
Use ts2date function from lib.Helpers. Remove old code
author | Torsten Irländer <torsten.irlaender@intevation.de> |
---|---|
date | Fri, 09 Aug 2013 15:23:59 +0200 (2013-08-09) |
parents | 53a446d4f424 |
children | 66935692f4b9 |
files | app/model/Messung.js |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/app/model/Messung.js Fri Aug 09 15:23:59 2013 +0200 +++ b/app/model/Messung.js Fri Aug 09 15:23:59 2013 +0200 @@ -1,5 +1,6 @@ Ext.define('Lada.model.Messung', { extend: 'Ext.data.Model', + requires: ['Lada.lib.Helpers'], fields: [ {name: "id"}, {name: "messungsId", mapping:"id.messungsId"}, @@ -7,7 +8,7 @@ {name: "mmtId"}, {name: "nebenprobenNr"}, {name: "messdauer"}, - {name: "messzeitpunkt", convert: ts2date, defaultValue: new Date()}, + {name: "messzeitpunkt", convert: Lada.lib.Helpers.ts2date, defaultValue: new Date()}, {name: "fertig", type: "boolean"}, {name: "letzteAenderung", type:"date"}, {name: "geplant", type: "boolean"}