comparison app/store/Umwelt.js @ 738:2db5d54a5685

Fixed ToDo in Umweltbereiche Store, made Umweltbereiche Typable to fix the regression, Sorted Umweltbereiche by ID
author Dustin Demuth <dustin@intevation.de>
date Mon, 20 Apr 2015 12:24:54 +0200
parents d47ee7439f44
children d2ee6858f452
comparison
equal deleted inserted replaced
737:4031b9aa8d83 738:2db5d54a5685
11 */ 11 */
12 Ext.define('Lada.store.Umwelt', { 12 Ext.define('Lada.store.Umwelt', {
13 extend: 'Ext.data.Store', 13 extend: 'Ext.data.Store',
14 model: 'Lada.model.Umwelt', 14 model: 'Lada.model.Umwelt',
15 sorters: [{ 15 sorters: [{
16 property: 'id',
17 direction: 'ASC'
18 }, {
16 property: 'umweltBereich', 19 property: 'umweltBereich',
20 direction: 'ASC',
17 transform: function(val) { 21 transform: function(val) {
18 if (val) { 22 if (val) {
19 return val.toLowerCase(); 23 return val.toLowerCase();
20 } 24 }
21 return ''; 25 return '';
22 } 26 }
23 }], 27 }],
24 autoLoad: true 28 sortOnLoad: true,
29 remoteSort: false,
30 autoLoad: true,
25 }); 31 });

http://lada.wald.intevation.org