Mercurial > lada > lada-client
changeset 853:e5f72fb491f4
Made Ortform readonly when the probe is readonly
author | Dustin Demuth <dustin@intevation.de> |
---|---|
date | Fri, 10 Jul 2015 10:07:39 +0200 |
parents | 405810eda690 |
children | a031b98c7edc |
files | app/view/form/Ort.js app/view/window/OrtEdit.js |
diffstat | 2 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/app/view/form/Ort.js Fri Jul 10 10:06:46 2015 +0200 +++ b/app/view/form/Ort.js Fri Jul 10 10:07:39 2015 +0200 @@ -127,7 +127,7 @@ }, setReadOnly: function(value) { - //this.down('location[name=ort]').setReadOnly(value); + this.down('location[name=ort]').setReadOnly(value); this.down('tfield[name=ortsTyp]').setReadOnly(value); this.down('textarea[name=ortszusatztext]').setReadOnly(value); }
--- a/app/view/window/OrtEdit.js Fri Jul 10 10:06:46 2015 +0200 +++ b/app/view/window/OrtEdit.js Fri Jul 10 10:07:39 2015 +0200 @@ -128,6 +128,9 @@ }); } this.down('ortform').setRecord(record); + if (this.probe.get('readonly')) { + this.down('ortform').setReadOnly(true); + } this.record = record; }, scope: this