Mercurial > lada > lada-client
comparison app/view/zusatzwerte/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 | e7665edf953f |
children | 8cb393ffe844 |
comparison
equal
deleted
inserted
replaced
270:0d6552bb28ea | 271:11f8a2c1b610 |
---|---|
6 autoShow: true, | 6 autoShow: true, |
7 autoScroll: true, | 7 autoScroll: true, |
8 modal: true, | 8 modal: true, |
9 | 9 |
10 initComponent: function() { | 10 initComponent: function() { |
11 var form = Ext.create('Lada.view.zusatzwerte.CreateForm', this.initialConfig); | |
12 this.items = [form]; | |
13 this.buttons = [ | 11 this.buttons = [ |
14 { | 12 { |
15 text: 'Speichern', | 13 text: 'Speichern', |
16 scope: form, | 14 scope: form, |
17 action: 'save' | 15 action: 'save' |
16 }, | |
17 { | |
18 text: 'Abbrechen', | |
19 scope: this, | |
20 handler: this.close, | |
18 } | 21 } |
19 ]; | 22 ]; |
23 var form = Ext.create('Lada.view.zusatzwerte.CreateForm', this.initialConfig); | |
24 this.items = [form]; | |
20 this.callParent(); | 25 this.callParent(); |
21 } | 26 } |
22 }); | 27 }); |