Mercurial > lada > lada-client
annotate app/store/Messgroessen.js @ 481:e45f4df57938
Set typeAhead to false. Causes errors.
author | Torsten Irländer <torsten.irlaender@intevation.de> |
---|---|
date | Tue, 21 Jan 2014 17:04:19 +0100 |
parents | debfcc7713e3 |
children |
rev | line source |
---|---|
472
debfcc7713e3
Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
445
diff
changeset
|
1 /* Copyright (C) 2013 by Bundesamt fuer Strahlenschutz |
debfcc7713e3
Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
445
diff
changeset
|
2 * Software engineering by Intevation GmbH |
debfcc7713e3
Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
445
diff
changeset
|
3 * |
debfcc7713e3
Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
445
diff
changeset
|
4 * This file is Free Software under the GNU GPL (v>=3) |
debfcc7713e3
Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
445
diff
changeset
|
5 * and comes with ABSOLUTELY NO WARRANTY! Check out |
debfcc7713e3
Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
445
diff
changeset
|
6 * the documentation coming with IMIS-Labordaten-Application for details. |
debfcc7713e3
Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
445
diff
changeset
|
7 */ |
debfcc7713e3
Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
445
diff
changeset
|
8 |
337
39297b8e5ba2
Added docstring
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
260
diff
changeset
|
9 /** |
39297b8e5ba2
Added docstring
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
260
diff
changeset
|
10 * Store for Messgroessen |
39297b8e5ba2
Added docstring
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
260
diff
changeset
|
11 */ |
182
23f74ae3bb87
Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
12 Ext.define('Lada.store.Messgroessen', { |
23f74ae3bb87
Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
13 extend: 'Ext.data.Store', |
445
a122424f2f0f
Fixed typos in fields.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
337
diff
changeset
|
14 fields: ['messgroesseId', 'messgroesse'], |
260
70a1b5962930
Issue50: Added sorting on the most stores.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
182
diff
changeset
|
15 sorters: [{ |
445
a122424f2f0f
Fixed typos in fields.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
337
diff
changeset
|
16 property: 'messgroesse', |
260
70a1b5962930
Issue50: Added sorting on the most stores.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
182
diff
changeset
|
17 transform: function(val) { |
70a1b5962930
Issue50: Added sorting on the most stores.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
182
diff
changeset
|
18 if (val) { |
70a1b5962930
Issue50: Added sorting on the most stores.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
182
diff
changeset
|
19 return val.toLowerCase(); |
70a1b5962930
Issue50: Added sorting on the most stores.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
182
diff
changeset
|
20 } else { |
70a1b5962930
Issue50: Added sorting on the most stores.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
182
diff
changeset
|
21 return ""; |
70a1b5962930
Issue50: Added sorting on the most stores.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
182
diff
changeset
|
22 }; |
70a1b5962930
Issue50: Added sorting on the most stores.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
182
diff
changeset
|
23 } |
70a1b5962930
Issue50: Added sorting on the most stores.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
182
diff
changeset
|
24 }], |
182
23f74ae3bb87
Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
25 autoLoad: true, |
23f74ae3bb87
Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
26 proxy: { |
23f74ae3bb87
Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
27 type: 'ajax', |
23f74ae3bb87
Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
28 api: { |
23f74ae3bb87
Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
29 read: 'server/rest/messgroesse' |
23f74ae3bb87
Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
30 }, |
23f74ae3bb87
Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
31 reader: { |
23f74ae3bb87
Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
32 type: 'json', |
23f74ae3bb87
Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
33 root: 'data' |
23f74ae3bb87
Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
34 } |
23f74ae3bb87
Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
35 } |
23f74ae3bb87
Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
36 }); |