changeset 185:df5dcdff7b69

Enabled readonly mode
author Torsten Irländer <torsten.irlaender@intevation.de>
date Fri, 05 Jul 2013 11:19:13 +0200
parents cfa4ed3b62b5
children 956555e20e02
files app/view/widgets/LadaForm.js
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/app/view/widgets/LadaForm.js	Fri Jul 05 11:18:43 2013 +0200
+++ b/app/view/widgets/LadaForm.js	Fri Jul 05 11:19:13 2013 +0200
@@ -143,8 +143,10 @@
             this.errors = this.translateReturnCodes(json.errors);
             this.warnings = this.translateReturnCodes(json.warnings);
             this.message = Lada.getApplication().bundle.getMsg(json.message);
+            this.setReadOnly(json.readonly);
+        } else {
+            this.setReadOnly(true);
         }
-        //this.setReadOnly(true);
     }
     // This parse method is used if the model.save() method is used to trigger
     // a request on the server side. In this case the response object is

http://lada.wald.intevation.org