[Lada-commits] [PATCH 2 of 3] Enabled readonly mode
Wald Commits
scm-commit at wald.intevation.org
Fri Jul 5 11:20:22 CEST 2013
# HG changeset patch
# User Torsten Irländer <torsten.irlaender at intevation.de>
# Date 1373015953 -7200
# Node ID df5dcdff7b690b274201dc790b061dae4ef8aa5a
# Parent cfa4ed3b62b5e7a4344bdb730ffdd90b223e4d07
Enabled readonly mode
diff -r cfa4ed3b62b5 -r df5dcdff7b69 app/view/widgets/LadaForm.js
--- 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
More information about the Lada-commits
mailing list