Mercurial > lada > lada-client
comparison app/view/messwerte/Create.js @ 270:0d6552bb28ea
Add cancel Button to the editproben window and only show save button if the
form is actually writeable.
author | Torsten Irländer <torsten.irlaender@intevation.de> |
---|---|
date | Tue, 06 Aug 2013 14:33:14 +0200 |
parents | 46cc69277b8e |
children | 11f8a2c1b610 |
comparison
equal
deleted
inserted
replaced
269:eda619ad45b0 | 270:0d6552bb28ea |
---|---|
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.messwerte.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' |
18 } | 16 } |
19 ]; | 17 ]; |
18 var form = Ext.create('Lada.view.messwerte.CreateForm', this.initialConfig); | |
19 this.items = [form]; | |
20 this.callParent(); | 20 this.callParent(); |
21 } | 21 } |
22 }); | 22 }); |