comparison app/view/orte/Create.js @ 271:11f8a2c1b610

Added Cancel Button to all Windows. Changed order howthe form is initialized. Now the form could hide the buttuns in the parent window depending on the readonly flag.
author Torsten Irländer <torsten.irlaender@intevation.de>
date Tue, 06 Aug 2013 16:03:38 +0200
parents 16ba7e2465fd
children 1536fb5c81b7
comparison
equal deleted inserted replaced
270:0d6552bb28ea 271:11f8a2c1b610
9 9
10 requires: [ 10 requires: [
11 'Lada.view.orte.CreateForm' 11 'Lada.view.orte.CreateForm'
12 ], 12 ],
13 initComponent: function() { 13 initComponent: function() {
14 var form = Ext.create('Lada.view.orte.CreateForm', this.initialConfig);
15 this.items = [form];
16 this.buttons = [ 14 this.buttons = [
17 { 15 {
18 text: 'Speichern', 16 text: 'Speichern',
19 scope: form, 17 scope: form,
20 action: 'save' 18 action: 'save'
19 },
20 {
21 text: 'Abbrechen',
22 scope: this,
23 handler: this.close,
21 } 24 }
22 ]; 25 ];
26 var form = Ext.create('Lada.view.orte.CreateForm', this.initialConfig);
27 this.items = [form];
23 this.callParent(); 28 this.callParent();
24 } 29 }
25 }); 30 });

http://lada.wald.intevation.org