comparison app/view/kommentare/List.js @ 491:850ccfe5f3c4

Code style.
author Raimund Renkert <raimund.renkert@intevation.de>
date Fri, 31 Oct 2014 23:23:32 +0100
parents 446e99cfd425
children 7c0653e8d9f7
comparison
equal deleted inserted replaced
490:446e99cfd425 491:850ccfe5f3c4
10 * Grid to list Kommentare 10 * Grid to list Kommentare
11 */ 11 */
12 Ext.define('Lada.view.kommentare.List' ,{ 12 Ext.define('Lada.view.kommentare.List' ,{
13 extend: 'Ext.grid.Panel', 13 extend: 'Ext.grid.Panel',
14 alias: 'widget.kommentarelist', 14 alias: 'widget.kommentarelist',
15
15 store: 'KommentareP', 16 store: 'KommentareP',
16 viewConfig: { 17 viewConfig: {
17 maxHeight: 350, 18 maxHeight: 350,
18 emptyText: 'Keine Kommentaregefunden.', 19 emptyText: 'Keine Kommentaregefunden.',
19 // minHeight and deferEmptyText are needed to be able to show the 20 // minHeight and deferEmptyText are needed to be able to show the
20 // emptyText message. 21 // emptyText message.
21 minHeight: 35, 22 minHeight: 35,
22 deferEmptyText: false 23 deferEmptyText: false
23 }, 24 },
24 probeId: null, 25 probeId: null,
26
25 initComponent: function() { 27 initComponent: function() {
26 this.dockedItems = [ 28 this.dockedItems = [{
27 { 29 xtype: 'toolbar',
28 xtype: 'toolbar', 30 dock: 'top',
29 dock: 'top', 31 items: [{
30 items: [ 32 text: 'Hinzufügen',
31 { 33 icon: 'gfx/list-add.png',
32 text: 'Hinzufügen', 34 action: 'add',
33 icon: 'gfx/list-add.png', 35 probeId: this.probeId
34 action: 'add', 36 }, {
35 probeId: this.probeId 37 text: 'Löschen',
36 }, 38 icon: 'gfx/list-remove.png',
37 { 39 action: 'delete'
38 text: 'Löschen', 40 }]
39 icon: 'gfx/list-remove.png', 41 }];
40 action: 'delete' 42 this.columns = [{
41 } 43 header: 'Erzeuger',
42 ] 44 dataIndex: 'erzeuger'
43 } 45 }, {
44 ]; 46 header: 'Datum',
45 this.columns = [ 47 dataIndex: 'kdatum'
46 {header: 'Erzeuger', dataIndex: 'erzeuger'}, 48 }, {
47 {header: 'Datum', dataIndex: 'kdatum'}, 49 header: 'Text',
48 {header: 'Text', dataIndex: 'ktext', flex: 1} 50 dataIndex: 'ktext',
49 ]; 51 flex: 1
52 }];
50 this.callParent(arguments); 53 this.callParent(arguments);
51 } 54 }
52 }); 55 });
53 56

http://lada.wald.intevation.org