Mercurial > lada > lada-client
diff app/controller/Proben.js @ 149:26ac4c99f8c4
Added Orte.
author | Torsten Irländer <torsten.irlaender@intevation.de> |
---|---|
date | Mon, 01 Jul 2013 17:05:03 +0200 |
parents | 7b1140bd8b3d |
children | 237a4efe715a |
line wrap: on
line diff
--- a/app/controller/Proben.js Mon Jul 01 14:20:08 2013 +0200 +++ b/app/controller/Proben.js Mon Jul 01 17:05:03 2013 +0200 @@ -8,8 +8,8 @@ 'Proben', 'Zusatzwerte', 'Probenzusatzwerte', - 'Kommentare' - // 'Orte', + 'Kommentare', + 'Orte' // 'Messungen', ], init: function() { @@ -51,13 +51,20 @@ probeId: id } }); - // Load Kommentare + // Load Kommentare var kstore = this.getKommentareStore(); kstore.load({ params: { probeId: id } }); + // Load Orte + var ostore = this.getOrteStore(); + ostore.load({ + params: { + probeId: id + } + }); console.log("Loaded Probe with ID " + record.getId()); //outputs ID }, createSuccess: function(form, record, operation) {