Commit 6e11ba6f authored by Romain Courteaud's avatar Romain Courteaud

[erp5_web_renderjs_ui] History page: element is now directly accessible

parent 1bf4067c
......@@ -14,22 +14,6 @@
table_template = Handlebars.compile(source);
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
/////////////////////////////////////////////////////////////////
......@@ -105,7 +89,7 @@
return gadget.translateHtml(result_html);
})
.push(function (my_translated_html) {
gadget.props.element.querySelector('.document_list').innerHTML =
gadget.element.querySelector('.document_list').innerHTML =
my_translated_html;
});
});
......
......@@ -230,7 +230,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>947.22494.14742.48810</string> </value>
<value> <string>954.45675.44850.53452</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -248,7 +248,7 @@
</tuple>
<state>
<tuple>
<float>1449229724.79</float>
<float>1476952911.66</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