Commit 48af4eaa authored by Romain Courteaud's avatar Romain Courteaud

[erp5_web_renderjs_ui] Cancel listbox line fetching as soon as possible

parent a74080cb
......@@ -197,7 +197,9 @@
}
}
queue = RSVP.Queue();
// Cancel previous line rendering to not conflict with the asynchronous render for now
gadget.fetchLineContent(true);
queue = new RSVP.Queue();
if (!variable.translated_records) {
queue
.push(function () {
......@@ -212,10 +214,6 @@
});
}
queue
.push(function () {
// Cancel previous line rendering to not conflict with the asynchronous render for now
return gadget.fetchLineContent(true);
})
.push(function () {
// XXX Fix in case of multiple listboxes
return RSVP.all([
......
......@@ -236,7 +236,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>964.57356.13308.65211</string> </value>
<value> <string>964.57356.32284.10547</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -254,7 +254,7 @@
</tuple>
<state>
<tuple>
<float>1516194029.5</float>
<float>1516364147.92</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