comparison app/view/window/MessungEdit.js @ 1036:5ed859241fc9

Use owner to set the RO status for the messung edit window.
author Raimund Renkert <raimund.renkert@intevation.de>
date Thu, 18 Feb 2016 11:48:41 +0100
parents d8e74bd89d6b
children 255d550e74f4
comparison
equal deleted inserted replaced
1035:479782c96efa 1036:5ed859241fc9
163 this.record = record; 163 this.record = record;
164 var json = Ext.decode(response.response.responseText); 164 var json = Ext.decode(response.response.responseText);
165 if (json) { 165 if (json) {
166 this.setMessages(json.errors, json.warnings); 166 this.setMessages(json.errors, json.warnings);
167 } 167 }
168 if (this.record.get('readonly') === true) { 168 if (this.record.get('readonly') === true ||
169 this.record.get('owner') === false) {
169 this.disableForm(); 170 this.disableForm();
170 } 171 }
171 else { 172 else {
172 this.enableForm(); 173 this.enableForm();
173 } 174 }

http://lada.wald.intevation.org