Mercurial > lada > lada-client
annotate app/lib/Helpers.js @ 379:0fa48c66cf7d
Set first version of a report of the import.
author | Torsten Irländer <torsten.irlaender@intevation.de> |
---|---|
date | Mon, 26 Aug 2013 16:54:48 +0200 |
parents | 1e1ee8abf91b |
children | 60a2812568cb |
rev | line source |
---|---|
297
1e1ee8abf91b
Added Helpers class to provide some helper methods.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
1 /** |
1e1ee8abf91b
Added Helpers class to provide some helper methods.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
2 * Helper class |
1e1ee8abf91b
Added Helpers class to provide some helper methods.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
3 * This class provides some globally used functions. |
1e1ee8abf91b
Added Helpers class to provide some helper methods.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
4 */ |
1e1ee8abf91b
Added Helpers class to provide some helper methods.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
5 Ext.define('Lada.lib.Helpers', { |
1e1ee8abf91b
Added Helpers class to provide some helper methods.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
6 statics: { |
1e1ee8abf91b
Added Helpers class to provide some helper methods.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
7 /** |
1e1ee8abf91b
Added Helpers class to provide some helper methods.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
8 * Function to translate a timestamp into a date |
1e1ee8abf91b
Added Helpers class to provide some helper methods.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
9 */ |
1e1ee8abf91b
Added Helpers class to provide some helper methods.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
10 ts2date: function(v, record){ |
1e1ee8abf91b
Added Helpers class to provide some helper methods.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
11 // Converts a timestamp into a date object. |
1e1ee8abf91b
Added Helpers class to provide some helper methods.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
12 return new Date(v); |
1e1ee8abf91b
Added Helpers class to provide some helper methods.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
13 } |
1e1ee8abf91b
Added Helpers class to provide some helper methods.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
14 } |
1e1ee8abf91b
Added Helpers class to provide some helper methods.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
15 }) |