comparison app/view/mkommentare/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 62e116cd3e3b
children b2dc95820b70
comparison
equal deleted inserted replaced
270:0d6552bb28ea 271:11f8a2c1b610
11 11
12 requires: [ 12 requires: [
13 'Lada.view.mkommentare.CreateForm' 13 'Lada.view.mkommentare.CreateForm'
14 ], 14 ],
15 initComponent: function() { 15 initComponent: function() {
16 var form = Ext.create('Lada.view.mkommentare.CreateForm', this.initialConfig);
17 this.items = [form];
18 this.buttons = [ 16 this.buttons = [
19 { 17 {
20 text: 'Speichern', 18 text: 'Speichern',
21 scope: form, 19 scope: form,
22 action: 'save' 20 action: 'save'
21 },
22 {
23 text: 'Abbrechen',
24 scope: this,
25 handler: this.close,
23 } 26 }
24 ]; 27 ];
28 var form = Ext.create('Lada.view.mkommentare.CreateForm', this.initialConfig);
29 this.items = [form];
25 this.callParent(); 30 this.callParent();
26 } 31 }
27 }); 32 });

http://lada.wald.intevation.org