[Lada-commits] [PATCH 3 of 3] Fixed loading stores when editing Messung
Wald Commits
scm-commit at wald.intevation.org
Tue Jul 16 13:57:45 CEST 2013
# HG changeset patch
# User Torsten Irländer <torsten.irlaender at intevation.de>
# Date 1373975798 -7200
# Node ID 5e056c5edf9a7056b9c178c529adb6dcfe10aaf2
# Parent 53e50427888beacee818b84ef10f04f2c0e71be6
Fixed loading stores when editing Messung.
diff -r 53e50427888b -r 5e056c5edf9a app/controller/Messungen.js
--- a/app/controller/Messungen.js Tue Jul 16 11:36:38 2013 +0200
+++ b/app/controller/Messungen.js Tue Jul 16 13:56:38 2013 +0200
@@ -50,30 +50,29 @@
},
editMessung: function(grid, record) {
console.log('Editing Messung');
- var view = Ext.widget('messungencreate', {model: record});
- console.log("Loaded Messung with ID " + record.getId()); //outputs ID
-
var kstore = this.getMKommentareStore();
kstore.load({
params: {
- probeId: probeId,
+ probeId: record.get('probeId'),
messungsId: record.get('messungsId')
}
});
var sstore = this.getStatusStore();
sstore.load({
params: {
- probeId: probeId,
+ probeId: record.get('probeId'),
messungsId: record.get('messungsId')
}
});
- var mstore = this.getMessungwerteStore();
+ var mstore = this.getMesswerteStore();
mstore.load({
params: {
- probeId: probeId,
+ probeId: record.get('probeId'),
messungsId: record.get('messungsId')
}
});
+ var view = Ext.widget('messungencreate', {model: record});
+ console.log("Loaded Messung with ID " + record.getId()); //outputs ID
},
deleteMessung: function(button) {
// Get selected item in grid
More information about the Lada-commits
mailing list