Commit 54e27e5f authored by Vincent Bechu's avatar Vincent Bechu

erp5_web_renderjs_ui: gadgetField use css_class form property

parent 9a1ae6f1
...@@ -12,7 +12,8 @@ ...@@ -12,7 +12,8 @@
editable: options.field_json.editable, editable: options.field_json.editable,
url: options.field_json.url, url: options.field_json.url,
sandbox: options.field_json.sandbox || undefined, sandbox: options.field_json.sandbox || undefined,
hidden: options.field_json.hidden hidden: options.field_json.hidden,
css_class: options.field_json.css_class
}); });
}) })
...@@ -30,11 +31,10 @@ ...@@ -30,11 +31,10 @@
var div = document.createElement('div'), var div = document.createElement('div'),
element = this.element, element = this.element,
gadget = this; gadget = this;
/* if (gadget.state.css_class) {
if (field_json.css_class) { element.setAttribute("class", gadget.state.css_class);
gadget_element.setAttribute("class", field_json.css_class); }
}
*/
// Clear first to DOM, append after to reduce flickering/manip // Clear first to DOM, append after to reduce flickering/manip
while (element.firstChild) { while (element.firstChild) {
element.removeChild(element.firstChild); element.removeChild(element.firstChild);
......
...@@ -230,7 +230,7 @@ ...@@ -230,7 +230,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>954.59038.25329.7150</string> </value> <value> <string>960.996.7923.46097</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>1479375711.35</float> <float>1497343012.54</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