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