view app/lib/Helpers.js @ 404:9caedffa5c7b

Added tag 0.5 for changeset e3e4adb00f32
author Raimund Renkert <rrenkert@intevation.de>
date Wed, 11 Sep 2013 11:16:13 +0200
parents 60a2812568cb
children debfcc7713e3
line wrap: on
line source
/**
 * 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.
            if (v === null || v === undefined) {
                return v;
            }
            return new Date(v);
        }
    }
})

http://lada.wald.intevation.org