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