comparison app/controller/Proben.js @ 65:9e2e09e819fd

Added a new Dialog to create proben without any kommentare or other additional values.
author Torsten Irländer <torsten.irlaender@intevation.de>
date Fri, 31 May 2013 17:40:56 +0200
parents a4a24e737deb
children cb1138f5cea7
comparison
equal deleted inserted replaced
64:a4a24e737deb 65:9e2e09e819fd
1 Ext.define('Lada.controller.Proben', { 1 Ext.define('Lada.controller.Proben', {
2 extend: 'Ext.app.Controller', 2 extend: 'Ext.app.Controller',
3 views: [ 3 views: [
4 'proben.List', 4 'proben.List',
5 'proben.Edit' 5 'proben.Edit',
6 'proben.Create'
6 ], 7 ],
7 stores: [ 8 stores: [
8 'Proben', 9 'Proben',
9 'Uwb', 10 'Uwb',
10 'Datenbasis', 11 'Datenbasis',
38 onPanelRendered: function() { 39 onPanelRendered: function() {
39 console.log('The panel was rendered'); 40 console.log('The panel was rendered');
40 }, 41 },
41 addProbe: function(button) { 42 addProbe: function(button) {
42 console.log('Adding new Probe'); 43 console.log('Adding new Probe');
43 var view = Ext.widget('probenedit'); 44 var view = Ext.widget('probencreate');
44 var form = view.down('form'); 45 var form = view.down('form');
45 // Create a new Kommentar 46 // Create a new Kommentar
46 var record = Ext.create('Lada.model.Probe'); 47 var record = Ext.create('Lada.model.Probe');
47 form.loadRecord(record); 48 form.loadRecord(record);
48 }, 49 },

http://lada.wald.intevation.org