view app/lib/Helpers.js @ 440:d900db3e9be9

Added tag 0.9 for changeset 1fc4407c6c83
author Raimund Renkert <rrenkert@intevation.de>
date Mon, 02 Dec 2013 15:20:30 +0100
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