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

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


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

diff -r 5e4d926d7717 -r 5f373d9d55cd app/model/Staat.js
--- a/app/model/Staat.js	Fri Aug 09 15:24:00 2013 +0200
+++ b/app/model/Staat.js	Fri Aug 09 15:24:00 2013 +0200
@@ -1,5 +1,6 @@
 Ext.define('Lada.model.Staat', {
     extend: 'Ext.data.Model',
+    requires: ['Lada.lib.Helpers'],
     fields: [
         {name: "staatId", type: 'int'},
         {name: "staat"},
@@ -19,8 +20,3 @@
         }
     }
 });
-
-function ts2date(v, record){
-    // Converts a timestamp into a date object.
-    return new Date(v);
-}


More information about the Lada-commits mailing list