comparison app/view/mkommentare/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 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
15 store: 'KommentareM', 16 store: 'KommentareM',
16 viewConfig: { 17 viewConfig: {
17 maxHeight: 350, 18 maxHeight: 350,
18 emptyText: 'Keine Kommentare gefunden.', 19 emptyText: 'Keine Kommentare gefunden.',
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 },
25
24 probeId: null, 26 probeId: null,
25 parentId: null, 27 parentId: null,
28
26 initComponent: function() { 29 initComponent: function() {
27 this.dockedItems = [ 30 this.dockedItems = [{
28 { 31 xtype: 'toolbar',
29 xtype: 'toolbar', 32 dock: 'top',
30 dock: 'top', 33 items: [{
31 items: [ 34 text: 'Hinzufügen',
32 { 35 icon: 'gfx/list-add.png',
33 text: 'Hinzufügen', 36 action: 'add',
34 icon: 'gfx/list-add.png', 37 probeId: this.probeId,
35 action: 'add', 38 parentId: this.parentId
36 probeId: this.probeId, 39 }, {
37 parentId: this.parentId 40 text: 'Löschen',
38 }, 41 icon: 'gfx/list-remove.png',
39 { 42 action: 'delete'
40 text: 'Löschen', 43 }]
41 icon: 'gfx/list-remove.png', 44 }];
42 action: 'delete' 45 this.columns = [{
43 } 46 header: 'Erzeuger',
44 ] 47 dataIndex: 'erzeuger'
45 } 48 }, {
46 ]; 49 header: 'Datum',
47 this.columns = [ 50 dataIndex: 'datum'
48 {header: 'Erzeuger', dataIndex: 'erzeuger'}, 51 }, {
49 {header: 'Datum', dataIndex: 'datum'}, 52 header: 'Text',
50 {header: 'Text', dataIndex: 'text', flex: 1} 53 dataIndex: 'text',
51 ]; 54 flex: 1
55 }];
52 this.callParent(arguments); 56 this.callParent(arguments);
53 } 57 }
54 }); 58 });
55 59

http://lada.wald.intevation.org