Mercurial > lada > lada-client
comparison app/view/widgets/LadaForm.js @ 185:df5dcdff7b69
Enabled readonly mode
author | Torsten Irländer <torsten.irlaender@intevation.de> |
---|---|
date | Fri, 05 Jul 2013 11:19:13 +0200 |
parents | 819bfedb70de |
children | 0fcec0c8c072 |
comparison
equal
deleted
inserted
replaced
184:cfa4ed3b62b5 | 185:df5dcdff7b69 |
---|---|
141 if (json) { | 141 if (json) { |
142 this.success = json.success; | 142 this.success = json.success; |
143 this.errors = this.translateReturnCodes(json.errors); | 143 this.errors = this.translateReturnCodes(json.errors); |
144 this.warnings = this.translateReturnCodes(json.warnings); | 144 this.warnings = this.translateReturnCodes(json.warnings); |
145 this.message = Lada.getApplication().bundle.getMsg(json.message); | 145 this.message = Lada.getApplication().bundle.getMsg(json.message); |
146 this.setReadOnly(json.readonly); | |
147 } else { | |
148 this.setReadOnly(true); | |
146 } | 149 } |
147 //this.setReadOnly(true); | |
148 } | 150 } |
149 // This parse method is used if the model.save() method is used to trigger | 151 // This parse method is used if the model.save() method is used to trigger |
150 // a request on the server side. In this case the response object is | 152 // a request on the server side. In this case the response object is |
151 // different. | 153 // different. |
152 //parseResponse: function(operation) { | 154 //parseResponse: function(operation) { |