Mercurial > lada > lada-client
comparison app/view/proben/Edit.js @ 144:7b1140bd8b3d
Re-Added Kommentare
author | Torsten Irländer <torsten.irlaender@intevation.de> |
---|---|
date | Mon, 01 Jul 2013 10:15:00 +0200 |
parents | a7bfaeb1655d |
children | 0d6552bb28ea |
comparison
equal
deleted
inserted
replaced
143:62b757ccdd8f | 144:7b1140bd8b3d |
---|---|
14 initComponent: function() { | 14 initComponent: function() { |
15 // InitialConfig is the config object passed to the constructor on | 15 // InitialConfig is the config object passed to the constructor on |
16 // creation of this window. We need to pass it throuh to the form as | 16 // creation of this window. We need to pass it throuh to the form as |
17 // we need the "modelId" param to load the correct item. | 17 // we need the "modelId" param to load the correct item. |
18 var form = Ext.create('Lada.view.proben.EditForm', this.initialConfig); | 18 var form = Ext.create('Lada.view.proben.EditForm', this.initialConfig); |
19 /// Load kommentare | |
20 ////var record = form.getRecord(); | |
21 //var kommentare = form.down('kommentarelist'); //form.down('kommentare'); | |
22 //var kstore = kommentare.getStore(); | |
23 //kstore.load({ | |
24 // params: { | |
25 // probe: this.initialConfig['modelId'] | |
26 // //probe: record.data['probeId'] | |
27 // } | |
28 //}); | |
29 //// Load Orte | |
30 //var orte = form.down('ortelist'); | |
31 //var ostore = orte.getStore(); | |
32 //ostore.load({ | |
33 // params: { | |
34 // probe: this.initialConfig['modelId'] | |
35 // //probe: record.data['probeId'] | |
36 // } | |
37 //}); | |
38 //// Load Messungen | |
39 //var messungen = form.down('messungenlist'); | |
40 //var mstore = messungen.getStore(); | |
41 //mstore.load({ | |
42 // params: { | |
43 // probe: this.initialConfig['modelId'] | |
44 // //probe: record.data['probeId'] | |
45 // } | |
46 //}); | |
47 this.items = [form]; | 19 this.items = [form]; |
48 this.buttons = [ | 20 this.buttons = [ |
49 { | 21 { |
50 text: 'Speichern', | 22 text: 'Speichern', |
51 handler: form.commit, | 23 handler: form.commit, |