Commit fe69daa6 by Romain Courteaud

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

1 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>
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!