comparison 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
comparison
equal deleted inserted replaced
490:446e99cfd425 491:850ccfe5f3c4
10 * Window to create and edit a Kommentar 10 * Window to create and edit a Kommentar
11 */ 11 */
12 Ext.define('Lada.view.kommentare.Create', { 12 Ext.define('Lada.view.kommentare.Create', {
13 extend: 'Ext.window.Window', 13 extend: 'Ext.window.Window',
14 alias: 'widget.kommentarecreate', 14 alias: 'widget.kommentarecreate',
15 requires: [
16 'Lada.view.kommentare.CreateForm'
17 ],
15 18
16 title: 'Maske für Kommentare', 19 title: 'Maske für Kommentare',
17 // Make size of the dialog dependend of the available space. 20 // Make size of the dialog dependend of the available space.
18 // TODO: Handle resizing the browser window. 21 // TODO: Handle resizing the browser window.
19 autoShow: true, 22 autoShow: true,
20 autoScroll: true, 23 autoScroll: true,
21 modal: true, 24 modal: true,
22 25
23 requires: [
24 'Lada.view.kommentare.CreateForm'
25 ],
26 initComponent: function() { 26 initComponent: function() {
27 this.buttons = [ 27 this.buttons = [{
28 { 28 text: 'Speichern',
29 text: 'Speichern', 29 scope: form,
30 scope: form, 30 action: 'save'
31 action: 'save' 31 }, {
32 }, 32 text: 'Abbrechen',
33 { 33 scope: this,
34 text: 'Abbrechen', 34 handler: this.close
35 scope: this, 35 }];
36 handler: this.close 36 var form = Ext.create('Lada.view.kommentare.CreateForm',
37 } 37 this.initialConfig);
38 ];
39 var form = Ext.create('Lada.view.kommentare.CreateForm', this.initialConfig);
40 this.items = [form]; 38 this.items = [form];
41 this.callParent(); 39 this.callParent(arguments);
42 } 40 }
43 }); 41 });

http://lada.wald.intevation.org