comparison app/view/messungen/Create.js @ 491:850ccfe5f3c4

Code style.
author Raimund Renkert <raimund.renkert@intevation.de>
date Fri, 31 Oct 2014 23:23:32 +0100
parents d00cc841a876
children 7c0653e8d9f7
comparison
equal deleted inserted replaced
490:446e99cfd425 491:850ccfe5f3c4
10 * Window to create a Messung 10 * Window to create a Messung
11 */ 11 */
12 Ext.define('Lada.view.messungen.Create', { 12 Ext.define('Lada.view.messungen.Create', {
13 extend: 'Ext.window.Window', 13 extend: 'Ext.window.Window',
14 alias: 'widget.messungencreate', 14 alias: 'widget.messungencreate',
15 requires: [
16 'Lada.view.messungen.CreateForm'
17 ],
15 18
16 title: 'Maske für Messungen', 19 title: 'Maske für Messungen',
17 autoShow: true, 20 autoShow: true,
18 autoScroll: true, 21 autoScroll: true,
19 modal: true, 22 modal: true,
20 23
21 requires: [
22 'Lada.view.messungen.CreateForm'
23 ],
24 initComponent: function() { 24 initComponent: function() {
25 this.buttons = [ 25 this.buttons = [{
26 { 26 text: 'Speichern',
27 text: 'Speichern', 27 scope: form,
28 scope: form, 28 action: 'save'
29 action: 'save' 29 }, {
30 }, 30 text: 'Abbrechen',
31 { 31 scope: this,
32 text: 'Abbrechen', 32 handler: this.close
33 scope: this, 33 }];
34 handler: this.close
35 }
36 ];
37 this.width = Ext.getBody().getViewSize().width - 30; 34 this.width = Ext.getBody().getViewSize().width - 30;
38 this.height = Ext.getBody().getViewSize().height - 30; 35 this.height = Ext.getBody().getViewSize().height - 30;
39 var form = Ext.create('Lada.view.messungen.CreateForm', this.initialConfig); 36 var form = Ext.create('Lada.view.messungen.CreateForm',
37 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