comparison app/store/Datenbasis.js @ 873:8e3bc9d2ec40

Applied Patch which was presented in the Workshop: Sort Datenbasis differently
author Dustin Demuth <dustin@intevation.de>
date Fri, 17 Jul 2015 15:02:38 +0200
parents d47ee7439f44
children
comparison
equal deleted inserted replaced
872:91334325149f 873:8e3bc9d2ec40
10 * Store for Datenbasis 10 * Store for Datenbasis
11 */ 11 */
12 Ext.define('Lada.store.Datenbasis', { 12 Ext.define('Lada.store.Datenbasis', {
13 extend: 'Ext.data.Store', 13 extend: 'Ext.data.Store',
14 model: 'Lada.model.Datenbasis', 14 model: 'Lada.model.Datenbasis',
15 sorters: [{ 15 sorters: [
16 property: 'datenbasis', 16 {
17 transform: function(val) { 17 property: 'id',
18 if (val) { 18 direction: 'ASC'
19 return val.toLowerCase();
20 }
21 return '';
22 }
23 }], 19 }],
24 autoLoad: true 20 autoLoad: true,
21 sortOnLoad: true
25 }); 22 });

http://lada.wald.intevation.org