Commit fe69daa6 authored by Romain Courteaud's avatar Romain Courteaud

[erp5_web_renderjs_ui] Router: Prevent execution of all next asynchronous code when redirecting

parent 8b40ecdf
......@@ -49,13 +49,10 @@
//////////////////////////////////////////////////////////////////
// Change URL functions
//////////////////////////////////////////////////////////////////
function changeState(hash) {
// window.location = hash;
return window.location.replace(hash);
}
function synchronousChangeState(hash) {
return changeState(hash);
window.location.replace(hash);
// Prevent execution of all next asynchronous code
throw new RSVP.CancellationError('Redirecting to ' + hash);
}
//////////////////////////////////////////////////////////////////
......
......@@ -232,7 +232,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>954.23087.8752.52155</string> </value>
<value> <string>954.47260.43395.7014</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -250,7 +250,7 @@
</tuple>
<state>
<tuple>
<float>1475662389.14</float>
<float>1476957907.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