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