comparison app/view/proben/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 c05fda928b82
children 11f8a2c1b610
comparison
equal deleted inserted replaced
269:eda619ad45b0 270:0d6552bb28ea
14 var form = Ext.create('Lada.view.proben.CreateForm'); 14 var form = Ext.create('Lada.view.proben.CreateForm');
15 this.items = [form]; 15 this.items = [form];
16 this.buttons = [ 16 this.buttons = [
17 { 17 {
18 text: 'Speichern', 18 text: 'Speichern',
19 handler: form.commit, 19 action: 'save',
20 scope: form 20 },
21 {
22 text: 'Abbrechen',
23 scope: this,
24 handler: this.close,
21 } 25 }
22 ]; 26 ];
23 this.callParent(); 27 this.callParent();
24 } 28 }
25 }); 29 });

http://lada.wald.intevation.org