Mercurial > lada > lada-client
diff app/view/kommentare/Create.js @ 491:850ccfe5f3c4
Code style.
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Fri, 31 Oct 2014 23:23:32 +0100 |
parents | debfcc7713e3 |
children | 7c0653e8d9f7 |
line wrap: on
line diff
--- a/app/view/kommentare/Create.js Fri Oct 31 21:28:31 2014 +0100 +++ b/app/view/kommentare/Create.js Fri Oct 31 23:23:32 2014 +0100 @@ -12,6 +12,9 @@ Ext.define('Lada.view.kommentare.Create', { extend: 'Ext.window.Window', alias: 'widget.kommentarecreate', + requires: [ + 'Lada.view.kommentare.CreateForm' + ], title: 'Maske für Kommentare', // Make size of the dialog dependend of the available space. @@ -20,24 +23,19 @@ autoScroll: true, modal: true, - requires: [ - 'Lada.view.kommentare.CreateForm' - ], initComponent: function() { - this.buttons = [ - { - text: 'Speichern', - scope: form, - action: 'save' - }, - { - text: 'Abbrechen', - scope: this, - handler: this.close - } - ]; - var form = Ext.create('Lada.view.kommentare.CreateForm', this.initialConfig); + this.buttons = [{ + text: 'Speichern', + scope: form, + action: 'save' + }, { + text: 'Abbrechen', + scope: this, + handler: this.close + }]; + var form = Ext.create('Lada.view.kommentare.CreateForm', + this.initialConfig); this.items = [form]; - this.callParent(); + this.callParent(arguments); } });