Mercurial > lada > lada-client
annotate app/store/Messgroessen.js @ 322:49a42c7f1d1f
Added docstring
author | Torsten Irländer <torsten.irlaender@intevation.de> |
---|---|
date | Tue, 13 Aug 2013 08:05:33 +0200 |
parents | 70a1b5962930 |
children | 39297b8e5ba2 |
rev | line source |
---|---|
182
23f74ae3bb87
Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
1 Ext.define('Lada.store.Messgroessen', { |
23f74ae3bb87
Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
2 extend: 'Ext.data.Store', |
23f74ae3bb87
Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
3 fields: ['messgroesseId', 'messgro0esse'], |
260
70a1b5962930
Issue50: Added sorting on the most stores.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
182
diff
changeset
|
4 sorters: [{ |
70a1b5962930
Issue50: Added sorting on the most stores.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
182
diff
changeset
|
5 property: 'messgro0esse', |
70a1b5962930
Issue50: Added sorting on the most stores.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
182
diff
changeset
|
6 transform: function(val) { |
70a1b5962930
Issue50: Added sorting on the most stores.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
182
diff
changeset
|
7 if (val) { |
70a1b5962930
Issue50: Added sorting on the most stores.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
182
diff
changeset
|
8 return val.toLowerCase(); |
70a1b5962930
Issue50: Added sorting on the most stores.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
182
diff
changeset
|
9 } else { |
70a1b5962930
Issue50: Added sorting on the most stores.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
182
diff
changeset
|
10 return ""; |
70a1b5962930
Issue50: Added sorting on the most stores.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
182
diff
changeset
|
11 }; |
70a1b5962930
Issue50: Added sorting on the most stores.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
182
diff
changeset
|
12 } |
70a1b5962930
Issue50: Added sorting on the most stores.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
182
diff
changeset
|
13 }], |
182
23f74ae3bb87
Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
14 autoLoad: true, |
23f74ae3bb87
Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
15 proxy: { |
23f74ae3bb87
Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
16 type: 'ajax', |
23f74ae3bb87
Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
17 api: { |
23f74ae3bb87
Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
18 read: 'server/rest/messgroesse' |
23f74ae3bb87
Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
19 }, |
23f74ae3bb87
Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
20 reader: { |
23f74ae3bb87
Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
21 type: 'json', |
23f74ae3bb87
Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
22 root: 'data' |
23f74ae3bb87
Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
23 } |
23f74ae3bb87
Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
24 } |
23f74ae3bb87
Added missing files.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
25 }); |