Mercurial > lada > lada-client
diff app/view/status/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 |
line wrap: on
line diff
--- a/app/view/status/List.js Fri Oct 31 21:28:31 2014 +0100 +++ b/app/view/status/List.js Fri Oct 31 23:23:32 2014 +0100 @@ -12,6 +12,7 @@ Ext.define('Lada.view.status.List' ,{ extend: 'Ext.grid.Panel', alias: 'widget.statuslist', + store: 'Status', viewConfig: { maxHeight: 350, @@ -21,35 +22,40 @@ minHeight: 35, deferEmptyText: false }, + parentId: null, probeId: null, + initComponent: function() { - this.dockedItems = [ - { - xtype: 'toolbar', - dock: 'top', - items: [ - { - text: 'Hinzufügen', - icon: 'gfx/list-add.png', - action: 'add', - probeId: this.probeId, - parentId: this.parentId - }, - { - text: 'Löschen', - icon: 'gfx/list-remove.png', - action: 'delete' - } - ] - } - ]; - this.columns = [ - {header: 'Erzeuger', dataIndex: 'erzeuger'}, - {header: 'Status', dataIndex: 'status'}, - {header: 'Datum', dataIndex: 'datum'}, - {header: 'Text', dataIndex: 'kommentar', flex: 1} - ]; + this.dockedItems = [{ + xtype: 'toolbar', + dock: 'top', + items: [{ + text: 'Hinzufügen', + icon: 'gfx/list-add.png', + action: 'add', + probeId: this.probeId, + parentId: this.parentId + }, { + text: 'Löschen', + icon: 'gfx/list-remove.png', + action: 'delete' + }] + }]; + this.columns = [{ + header: 'Erzeuger', + dataIndex: 'erzeuger' + }, { + header: 'Status', + dataIndex: 'status' + }, { + header: 'Datum', + dataIndex: 'datum' + }, { + header: 'Text', + dataIndex: 'kommentar', + flex: 1 + }]; this.callParent(arguments); } });