comparison app/view/messwerte/Create.js @ 191:46cc69277b8e

Removed unneeded code and set action attribute on button.
author Torsten Irländer <torsten.irlaender@intevation.de>
date Mon, 08 Jul 2013 11:58:37 +0200
parents 956555e20e02
children 0d6552bb28ea
comparison
equal deleted inserted replaced
190:781113839155 191:46cc69277b8e
1 Ext.define('Lada.view.messwerte.Create', { 1 Ext.define('Lada.view.messwerte.Create', {
2 extend: 'Ext.window.Window', 2 extend: 'Ext.window.Window',
3 alias: 'widget.messwertecreate', 3 alias: 'widget.messwertecreate',
4 4
5 title: 'Maske für Messwerte', 5 title: 'Maske für Messwerte',
6 //width: Ext.getBody().getViewSize().width - 30,
7 //height: Ext.getBody().getViewSize().height - 30,
8 autoShow: true, 6 autoShow: true,
9 autoScroll: true, 7 autoScroll: true,
10 modal: true, 8 modal: true,
11 9
12 requires: [
13 'Lada.view.messungen.CreateForm'
14 ],
15 initComponent: function() { 10 initComponent: function() {
16 var form = Ext.create('Lada.view.messwerte.CreateForm', this.initialConfig); 11 var form = Ext.create('Lada.view.messwerte.CreateForm', this.initialConfig);
17 this.items = [form]; 12 this.items = [form];
18 this.buttons = [ 13 this.buttons = [
19 { 14 {
20 text: 'Speichern', 15 text: 'Speichern',
21 scope: form 16 scope: form,
17 action: 'save'
22 } 18 }
23 ]; 19 ];
24 this.callParent(); 20 this.callParent();
25 } 21 }
26 }); 22 });

http://lada.wald.intevation.org