Commit 9b7d93c9 authored by Vincent Bechu's avatar Vincent Bechu Committed by Eteri

erp5_web_renderjs_ui: gadgetField use css_class form property

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