Mercurial > lada > lada-client
diff app/view/window/ProbeEdit.js @ 707:c632c7c34029
added disable/enableChildren Method
author | Dustin Demuth <dustin@intevation.de> |
---|---|
date | Fri, 27 Mar 2015 15:22:32 +0100 |
parents | 3e4be37e3e46 |
children | 6f6d2df00130 |
line wrap: on
line diff
--- a/app/view/window/ProbeEdit.js Fri Mar 27 14:48:42 2015 +0100 +++ b/app/view/window/ProbeEdit.js Fri Mar 27 15:22:32 2015 +0100 @@ -146,7 +146,11 @@ }, disableChildren: function(){ - this.down('fset[name=messungen]').down('messunggrid').setReadOnly(true); + if (!this.record.get('owner')) { + // Disable only when the User is not the owner of the Probe + // Works in symbiosis with success callback some lines above. + this.down('fset[name=messungen]').down('messunggrid').setReadOnly(true); + } this.down('fset[name=orte]').down('ortgrid').setReadOnly(true); this.down('fset[name=probenzusatzwerte]').down('probenzusatzwertgrid').setReadOnly(true); this.down('fset[name=pkommentare]').down('pkommentargrid').setReadOnly(true);