Commit 4accc179 authored by Romain Courteaud's avatar Romain Courteaud

[erp5_web_renderjs_ui] Support disabled property for stringfield

parent 83af8bdf
...@@ -39,6 +39,11 @@ ...@@ -39,6 +39,11 @@
} else { } else {
element.removeAttribute('required'); element.removeAttribute('required');
} }
if (field_json.disabled) {
element.setAttribute("disabled", "disabled");
} else {
element.removeAttribute('disabled');
}
} else { } else {
element = this.element.querySelector('p'); element = this.element.querySelector('p');
if (element === null) { if (element === null) {
......
...@@ -230,7 +230,7 @@ ...@@ -230,7 +230,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>953.628.51543.17476</string> </value> <value> <string>953.643.50676.9335</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -248,7 +248,7 @@ ...@@ -248,7 +248,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1470314253.13</float> <float>1470315124.05</float>
<string>UTC</string> <string>UTC</string>
</tuple> </tuple>
</state> </state>
......
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