[Lada-commits] [PATCH 15 of 56] Use ts2date function from lib.Helpers. Remove old code

Wald Commits scm-commit at wald.intevation.org
Tue Aug 13 09:53:41 CEST 2013


# HG changeset patch
# User Torsten Irländer <torsten.irlaender at intevation.de>
# Date 1376054639 -7200
# Node ID fe199b8828a8a8e7e8c5656dbe65e46401f0250d
# Parent  53a446d4f42433ebe94379241d68217e964bcefc
Use ts2date function from lib.Helpers. Remove old code

diff -r 53a446d4f424 -r fe199b8828a8 app/model/Messung.js
--- 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"}


More information about the Lada-commits mailing list