Commit c5b6eb61 by Romain Courteaud

[erp5_web_renderjs_ui] History page: element is now directly accessible

1 parent bf757e1c
......@@ -15,22 +15,6 @@
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
/////////////////////////////////////////////////////////////////
.declareAcquiredMethod("jio_allDocs", "jio_allDocs")
......@@ -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>
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!