Mercurial > lada > lada-client
comparison app/store/Messeinheit.js @ 260:70a1b5962930
Issue50: Added sorting on the most stores.
author | Torsten Irländer <torsten.irlaender@intevation.de> |
---|---|
date | Thu, 25 Jul 2013 15:39:15 +0200 |
parents | 1fb79e16149f |
children | 39297b8e5ba2 |
comparison
equal
deleted
inserted
replaced
259:d19ad9d28de5 | 260:70a1b5962930 |
---|---|
1 Ext.define('Lada.store.Messeinheit', { | 1 Ext.define('Lada.store.Messeinheit', { |
2 extend: 'Ext.data.Store', | 2 extend: 'Ext.data.Store', |
3 fields: ['mehId', 'einheit'], | 3 fields: ['mehId', 'einheit'], |
4 sorters: [{ | |
5 property: 'einheit', | |
6 transform: function(val) { | |
7 if (val) { | |
8 return val.toLowerCase(); | |
9 } else { | |
10 return ""; | |
11 }; | |
12 } | |
13 }], | |
4 autoLoad: true, | 14 autoLoad: true, |
5 proxy: { | 15 proxy: { |
6 type: 'ajax', | 16 type: 'ajax', |
7 api: { | 17 api: { |
8 read: 'server/rest/messeinheit' | 18 read: 'server/rest/messeinheit' |