Commit ad3bb4e7 authored by Xiaowu Zhang's avatar Xiaowu Zhang

erp5_web_renderjs_ui: add alt attribute for img tag

parent 74245431
...@@ -115,6 +115,7 @@ ...@@ -115,6 +115,7 @@
.declareMethod(\'render\', function (options) {\n .declareMethod(\'render\', function (options) {\n
var image = this.props.element.querySelector(".image");\n var image = this.props.element.querySelector(".image");\n
image.src = options.field_json.default;\n image.src = options.field_json.default;\n
image.alt = options.field_json.description || options.field_json.title;\n
});\n });\n
}(window, rJS));</string> </value> }(window, rJS));</string> </value>
</item> </item>
...@@ -237,7 +238,7 @@ ...@@ -237,7 +238,7 @@
</item> </item>
<item> <item>
<key> <string>actor</string> </key> <key> <string>actor</string> </key>
<value> <string>xiaowu</string> </value> <value> <string>zope</string> </value>
</item> </item>
<item> <item>
<key> <string>comment</string> </key> <key> <string>comment</string> </key>
...@@ -251,7 +252,7 @@ ...@@ -251,7 +252,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>943.42173.14880.32290</string> </value> <value> <string>944.8309.29615.33689</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -269,8 +270,8 @@ ...@@ -269,8 +270,8 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1434092058.65</float> <float>1435904292.92</float>
<string>UTC</string> <string>GMT+2</string>
</tuple> </tuple>
</state> </state>
</object> </object>
......
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