Commit d93b332b authored by Romain Courteaud's avatar Romain Courteaud Committed by Sebastien Robin

Do allow modification on read only string field

parent 6fecf063
...@@ -115,6 +115,11 @@ ...@@ -115,6 +115,11 @@
);\n );\n
input.setAttribute(\'name\', field_json.key);\n input.setAttribute(\'name\', field_json.key);\n
input.setAttribute(\'title\', field_json.title);\n input.setAttribute(\'title\', field_json.title);\n
if (field_json.editable !== 1) {\n
input.setAttribute(\'readonly\', \'readonly\');\n
input.setAttribute(\'disabled\', \'disabled\');\n
\n
}\n
})\n })\n
\n \n
.declareMethod(\'getContent\', function () {\n .declareMethod(\'getContent\', function () {\n
......
16 17
\ No newline at end of file \ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment