Commit c33df101 authored by Romain Courteaud's avatar Romain Courteaud

[erp5_web_renderjs_ui] Do not reuse the same variable name

parent 169f2be0
......@@ -8,9 +8,9 @@
// declared methods
/////////////////////////////////////////////////////////////////
.declareMethod('render', function (options) {
var gadget = this,
var context = this,
field_json = options.field_json || {};
return this.getDeclaredGadget("relation_input")
return context.getDeclaredGadget("relation_input")
.push(function (gadget) {
var render_options = {
editable: field_json.editable,
......@@ -47,7 +47,7 @@
return gadget.render(render_options);
})
.push(function () {
return gadget.changeState({
return context.changeState({
key: options.field_json.key,
relation_field_id: options.field_json.relation_field_id
});
......
......@@ -230,7 +230,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>955.18006.50413.2645</string> </value>
<value> <string>958.19776.55952.3225</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -248,7 +248,7 @@
</tuple>
<state>
<tuple>
<float>1479293469.27</float>
<float>1490691939.14</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