comparison app/view/mkommentare/List.js @ 490:446e99cfd425

Updated views and controllers using the new model and stores.
author Raimund Renkert <raimund.renkert@intevation.de>
date Fri, 31 Oct 2014 21:28:31 +0100
parents debfcc7713e3
children 850ccfe5f3c4
comparison
equal deleted inserted replaced
489:6056a7fd9aa2 490:446e99cfd425
10 * Grid to list Kommentare for Messunge 10 * Grid to list Kommentare for Messunge
11 */ 11 */
12 Ext.define('Lada.view.mkommentare.List' ,{ 12 Ext.define('Lada.view.mkommentare.List' ,{
13 extend: 'Ext.grid.Panel', 13 extend: 'Ext.grid.Panel',
14 alias: 'widget.mkommentarelist', 14 alias: 'widget.mkommentarelist',
15 store: 'MKommentare', 15 store: 'KommentareM',
16 viewConfig: { 16 viewConfig: {
17 maxHeight: 350, 17 maxHeight: 350,
18 emptyText: 'Keine Kommentare gefunden.', 18 emptyText: 'Keine Kommentare gefunden.',
19 // minHeight and deferEmptyText are needed to be able to show the 19 // minHeight and deferEmptyText are needed to be able to show the
20 // emptyText message. 20 // emptyText message.
44 ] 44 ]
45 } 45 }
46 ]; 46 ];
47 this.columns = [ 47 this.columns = [
48 {header: 'Erzeuger', dataIndex: 'erzeuger'}, 48 {header: 'Erzeuger', dataIndex: 'erzeuger'},
49 {header: 'Datum', dataIndex: 'kdatum'}, 49 {header: 'Datum', dataIndex: 'datum'},
50 {header: 'Text', dataIndex: 'ktext', flex: 1} 50 {header: 'Text', dataIndex: 'text', flex: 1}
51 ]; 51 ];
52 this.callParent(arguments); 52 this.callParent(arguments);
53 } 53 }
54 }); 54 });
55 55

http://lada.wald.intevation.org