Commit f235c6b0 authored by Cédric Le Ninivin's avatar Cédric Le Ninivin

erp5_officejs: Remove deprecated XMLHTTPRequestProgressEvent

parent c53d70d4
/*global window, rJS, jIO, FormData, XMLHttpRequestProgressEvent, UriTemplate */
/*global window, rJS, jIO, FormData, UriTemplate */
/*jslint indent: 2, maxerr: 3 */
(function (window, rJS, jIO) {
"use strict";
......@@ -8,8 +8,7 @@
var storage = gadget.state_parameter_dict.jio_storage;
return storage[method_name].apply(storage, argument_list)
.push(undefined, function (error) {
if (error instanceof XMLHttpRequestProgressEvent &&
error.target.status === 401) {
if ((error.target !== undefined) && (error.target.status === 401)) {
if (gadget.state_parameter_dict.jio_storage_name === "ERP5") {
return gadget.redirect({ page: "login" });
}
......
......@@ -216,7 +216,7 @@
</item>
<item>
<key> <string>actor</string> </key>
<value> <string>zope</string> </value>
<value> <string>cedric.le.ninivin</string> </value>
</item>
<item>
<key> <string>comment</string> </key>
......@@ -230,7 +230,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>947.54207.48571.57002</string> </value>
<value> <string>949.59977.1025.50722</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -248,7 +248,7 @@
</tuple>
<state>
<tuple>
<float>1450281591.67</float>
<float>1458319358.64</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