Commit 905738af authored by Romain Courteaud's avatar Romain Courteaud

erp5_web_renderjs_ui: set the html5 element tooltip

parent 09d63121
Pipeline #16678 failed with stage
in 0 seconds
...@@ -27,6 +27,7 @@ ...@@ -27,6 +27,7 @@
href: options.href, href: options.href,
alt: options.alt, alt: options.alt,
name: options.name, name: options.name,
title: options.title,
append: getFirstNonEmpty(options.append, ""), append: getFirstNonEmpty(options.append, ""),
prepend: getFirstNonEmpty(options.prepend, "") prepend: getFirstNonEmpty(options.prepend, "")
}; };
...@@ -68,6 +69,9 @@ ...@@ -68,6 +69,9 @@
if (this.state.alt) { if (this.state.alt) {
new_element.setAttribute('alt', this.state.alt); new_element.setAttribute('alt', this.state.alt);
} }
if (this.state.title) {
new_element.setAttribute('title', this.state.title);
}
if (modification_dict.hasOwnProperty("data")) { if (modification_dict.hasOwnProperty("data")) {
data = JSON.parse(modification_dict.data); data = JSON.parse(modification_dict.data);
for (data_attr in data) { for (data_attr in data) {
......
...@@ -228,7 +228,7 @@ ...@@ -228,7 +228,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>989.27523.29749.43383</string> </value> <value> <string>991.25772.62050.38894</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -246,7 +246,7 @@ ...@@ -246,7 +246,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1614350654.73</float> <float>1626770589.98</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