Commit c5b6eb61 authored by Romain Courteaud's avatar Romain Courteaud

[erp5_web_renderjs_ui] History page: element is now directly accessible

parent bf757e1c
...@@ -14,22 +14,6 @@ ...@@ -14,22 +14,6 @@
table_template = Handlebars.compile(source); table_template = Handlebars.compile(source);
gadget_klass gadget_klass
/////////////////////////////////////////////////////////////////
// ready
/////////////////////////////////////////////////////////////////
// Init local properties
.ready(function (g) {
g.props = {};
})
// Assign the element to a variable
.ready(function (g) {
return g.getElement()
.push(function (element) {
g.props.element = element;
});
})
///////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////
// Acquired methods // Acquired methods
///////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////
...@@ -105,7 +89,7 @@ ...@@ -105,7 +89,7 @@
return gadget.translateHtml(result_html); return gadget.translateHtml(result_html);
}) })
.push(function (my_translated_html) { .push(function (my_translated_html) {
gadget.props.element.querySelector('.document_list').innerHTML = gadget.element.querySelector('.document_list').innerHTML =
my_translated_html; my_translated_html;
}); });
}); });
......
...@@ -230,7 +230,7 @@ ...@@ -230,7 +230,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>947.22494.14742.48810</string> </value> <value> <string>954.45675.44850.53452</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>1449229724.79</float> <float>1476952911.66</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