Mercurial > lada > lada-client
comparison app/controller/Proben.js @ 144:7b1140bd8b3d
Re-Added Kommentare
author | Torsten Irländer <torsten.irlaender@intevation.de> |
---|---|
date | Mon, 01 Jul 2013 10:15:00 +0200 |
parents | 1fb79e16149f |
children | 26ac4c99f8c4 |
comparison
equal
deleted
inserted
replaced
143:62b757ccdd8f | 144:7b1140bd8b3d |
---|---|
5 'proben.Create' | 5 'proben.Create' |
6 ], | 6 ], |
7 stores: [ | 7 stores: [ |
8 'Proben', | 8 'Proben', |
9 'Zusatzwerte', | 9 'Zusatzwerte', |
10 'Probenzusatzwerte' | 10 'Probenzusatzwerte', |
11 'Kommentare' | |
11 // 'Orte', | 12 // 'Orte', |
12 // 'Messungen', | 13 // 'Messungen', |
13 ], | 14 ], |
14 init: function() { | 15 init: function() { |
15 console.log('Initialising the Proben controller'); | 16 console.log('Initialising the Proben controller'); |
48 zstore.load({ | 49 zstore.load({ |
49 params: { | 50 params: { |
50 probeId: id | 51 probeId: id |
51 } | 52 } |
52 }); | 53 }); |
54 // Load Kommentare | |
55 var kstore = this.getKommentareStore(); | |
56 kstore.load({ | |
57 params: { | |
58 probeId: id | |
59 } | |
60 }); | |
53 console.log("Loaded Probe with ID " + record.getId()); //outputs ID | 61 console.log("Loaded Probe with ID " + record.getId()); //outputs ID |
54 }, | 62 }, |
55 createSuccess: function(form, record, operation) { | 63 createSuccess: function(form, record, operation) { |
56 // Reload store | 64 // Reload store |
57 var store = this.getProbenStore(); | 65 var store = this.getProbenStore(); |