diff app/view/window/OrtEdit.js @ 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 7267bae1d43f
children def27cdd0dfa
line wrap: on
line diff
--- 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

http://lada.wald.intevation.org