Commit 283fcf52 authored by Romain Courteaud's avatar Romain Courteaud

[erp5_officejs] RSVP.CancellationError should not be displayed to user.

They are used by RSVP.js when calling the Promise.cancel method
parent b47ce0da
...@@ -236,6 +236,9 @@ ...@@ -236,6 +236,9 @@
// Display it to the user for now,\n // Display it to the user for now,\n
// and allow user to go back to the frontpage\n // and allow user to go back to the frontpage\n
var error_text = "";\n var error_text = "";\n
if (error instanceof RSVP.CancellationError) {\n
return;\n
}\n
\n \n
if (error instanceof XMLHttpRequest) {\n if (error instanceof XMLHttpRequest) {\n
error_text = error.toString() + " " +\n error_text = error.toString() + " " +\n
...@@ -669,7 +672,7 @@ ...@@ -669,7 +672,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>945.33658.35295.955</string> </value> <value> <string>945.33659.5064.30310</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -687,7 +690,7 @@ ...@@ -687,7 +690,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1441357144.63</float> <float>1441377487.05</float>
<string>GMT</string> <string>GMT</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