comparison app/view/mkommentare/List.js @ 207:62e116cd3e3b

Inheritance of Mkommentare from Kommentare does not work as expected. So write mostly duplicated code for MKommentare.
author Torsten Irländer <torsten.irlaender@intevation.de>
date Tue, 09 Jul 2013 15:26:29 +0200
parents 133df8f75a12
children b2dc95820b70
comparison
equal deleted inserted replaced
206:32e1356cf391 207:62e116cd3e3b
1 Ext.define('Lada.view.mkommentare.List' ,{ 1 Ext.define('Lada.view.mkommentare.List' ,{
2 extend: 'Lada.view.kommentare.List', 2 extend: 'Ext.grid.Panel',
3 alias: 'widget.mkommentarelist', 3 alias: 'widget.mkommentarelist',
4 store: 'MKommentare', 4 store: 'MKommentare',
5 messungsId: null 5 viewConfig: {
6 maxHeight: 350,
7 emptyText: 'Keine Kommentare gefunden.',
8 // minHeight and deferEmptyText are needed to be able to show the
9 // emptyText message.
10 minHeight: 35,
11 deferEmptyText: false
12 },
13 probeId: null,
14 parentId: null,
15 initComponent: function() {
16 this.dockedItems = [
17 {
18 xtype: 'toolbar',
19 dock: 'top',
20 items: [
21 {
22 text: 'Hinzufügen',
23 icon: 'gfx/plus.gif',
24 action: 'add',
25 probeId: this.probeId,
26 parentId: this.parentId
27 },
28 {
29 text: 'Löschen',
30 icon: 'gfx/minus.gif',
31 action: 'delete'
32 }
33 ]
34 }
35 ];
36 this.columns = [
37 {header: 'Erzeuger', dataIndex: 'erzeuger'},
38 {header: 'Datum', dataIndex: 'kdatum'},
39 {header: 'Text', dataIndex: 'ktext', flex: 1}
40 ];
41 this.callParent(arguments);
42 }
6 }); 43 });
44

http://lada.wald.intevation.org