changeset 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 5e4d926d7717
children 59c1d9ad6555
files app/model/Staat.js
diffstat 1 files changed, 1 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- 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);
-}

http://lada.wald.intevation.org