Mercurial > lada > lada-client
comparison app/view/window/ProbeEdit.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 |
---|---|
138 | 138 |
139 var json = Ext.decode(response.response.responseText); | 139 var json = Ext.decode(response.response.responseText); |
140 if (json) { | 140 if (json) { |
141 this.setMessages(json.errors, json.warnings); | 141 this.setMessages(json.errors, json.warnings); |
142 } | 142 } |
143 // If the Probe is ReadOnly, disable Inputfields and grids | |
144 if (this.record.get('readonly') === true) { | |
145 this.down('probeform').setReadOnly(true); | |
146 this.disableChildren(); | |
147 } | |
148 else { | |
149 this.down('probeform').setReadOnly(false); | |
150 this.enableChildren(); | |
151 } | |
143 }, | 152 }, |
144 scope: this | 153 scope: this |
145 }); | 154 }); |
146 | |
147 // If the Probe is ReadOnly, disable Inputfields and grids | |
148 if (this.record.get('readonly') == true){ | |
149 this.down('probeform').setReadOnly(true); | |
150 this.disableChildren(); | |
151 } | |
152 }, | 155 }, |
153 | 156 |
154 enableAddMessungen: function(){ | 157 enableAddMessungen: function(){ |
155 this.down('fset[name=messungen]').down('messunggrid').setReadOnly(false); | 158 this.down('fset[name=messungen]').down('messunggrid').setReadOnly(false); |
156 }, | 159 }, |