comparison app/view/window/MessungEdit.js @ 710:f204f30b824a

Handle readonly mode and refresh operations.
author Raimund Renkert <raimund.renkert@intevation.de>
date Wed, 08 Apr 2015 10:50:33 +0200
parents 6f6d2df00130
children baef70abfe71
comparison
equal deleted inserted replaced
709:6f6d2df00130 710:f204f30b824a
143 this.record = record; 143 this.record = record;
144 var json = Ext.decode(response.response.responseText); 144 var json = Ext.decode(response.response.responseText);
145 if (json) { 145 if (json) {
146 this.setMessages(json.errors, json.warnings); 146 this.setMessages(json.errors, json.warnings);
147 } 147 }
148 if (this.record.get('readonly') === true) {
149 this.disableForm();
150 }
151 else {
152 this.enableForm();
153 }
148 }, 154 },
149 scope: this 155 scope: this
150 }); 156 });
151 if (this.record.get('readonly') == true){
152 this.disableForm();
153 }
154 }, 157 },
155 158
156 disableForm: function(){ 159 disableForm: function(){
157 this.down('messungform').setReadOnly(true); 160 this.down('messungform').setReadOnly(true);
158 this.disableChildren(); 161 this.disableChildren();

http://lada.wald.intevation.org