changeset 297:1e1ee8abf91b

Added Helpers class to provide some helper methods.
author Torsten Irländer <torsten.irlaender@intevation.de>
date Fri, 09 Aug 2013 15:22:09 +0200
parents 529da633b8e3
children 53a446d4f424
files app/lib/Helpers.js
diffstat 1 files changed, 15 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/app/lib/Helpers.js	Fri Aug 09 15:22:09 2013 +0200
@@ -0,0 +1,15 @@
+/**
+ * Helper class
+ * This class provides some globally used functions.
+*/
+Ext.define('Lada.lib.Helpers', {
+    statics: {
+        /**
+         * Function to translate a timestamp into a date
+         */
+        ts2date: function(v, record){
+            // Converts a timestamp into a date object.
+            return new Date(v);
+        }
+    }
+})

http://lada.wald.intevation.org