[Lada-commits] [PATCH 2 of 7] Set messung readonly if parent probe is readonly
Wald Commits
scm-commit at wald.intevation.org
Wed Jul 17 12:16:38 CEST 2013
# HG changeset patch
# User Torsten Irländer <torsten.irlaender at intevation.de>
# Date 1374053753 -7200
# Node ID 80df1451b4a9e681b34a78d723f81d2b237cbc1e
# Parent 08144d625b2bbe3148c9a923565487f7ae95ca4a
Set messung readonly if parent probe is readonly
diff -r 08144d625b2b -r 80df1451b4a9 app/controller/Messungen.js
--- a/app/controller/Messungen.js Wed Jul 17 11:06:47 2013 +0200
+++ b/app/controller/Messungen.js Wed Jul 17 11:35:53 2013 +0200
@@ -4,6 +4,7 @@
'messungen.Create'
],
stores: [
+ 'Proben',
'Messungen',
'Messwerte',
'MKommentare',
@@ -71,6 +72,8 @@
messungsId: record.get('messungsId')
}
});
+ var probe = this.getProbenStore().getById(record.get('probeId'));
+ record.set('readonly', probe.get('readonly'));
var view = Ext.widget('messungencreate', {model: record});
console.log("Loaded Messung with ID " + record.getId()); //outputs ID
},
More information about the Lada-commits
mailing list