Commit 0fc39359 authored by Romain Courteaud's avatar Romain Courteaud

erp5_core/erp5_web_renderjs_ui: jio 3.43.0

parent 5134dd20
...@@ -13684,6 +13684,13 @@ return new Parser; ...@@ -13684,6 +13684,13 @@ return new Parser;
); );
} }
return evt.target.response; return evt.target.response;
}, function (error) {
if ((error.target !== undefined) &&
(error.target.status === 404)) {
throw new jIO.util.jIOError("Cannot find attachment: " + action,
404);
}
throw error;
}); });
} }
throw new jIO.util.jIOError("ERP5: not support get attachment: " + action, throw new jIO.util.jIOError("ERP5: not support get attachment: " + action,
...@@ -15000,10 +15007,7 @@ return new Parser; ...@@ -15000,10 +15007,7 @@ return new Parser;
} catch (error) { } catch (error) {
reject(error); reject(error);
} }
return new RSVP.Queue() return new RSVP.Queue(result)
.push(function () {
return result;
})
.push(function (final_result) { .push(function (final_result) {
canceller(); canceller();
resolve(final_result); resolve(final_result);
...@@ -15035,10 +15039,7 @@ return new Parser; ...@@ -15035,10 +15039,7 @@ return new Parser;
reject(error); reject(error);
} }
tx.oncomplete = function () { tx.oncomplete = function () {
return new RSVP.Queue() return new RSVP.Queue(result)
.push(function () {
return result;
})
.push(resolve, function (error) { .push(resolve, function (error) {
canceller(); canceller();
reject(error); reject(error);
......
...@@ -240,7 +240,7 @@ ...@@ -240,7 +240,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>986.19538.8051.64733</string> </value> <value> <string>991.25772.62050.38894</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -258,7 +258,7 @@ ...@@ -258,7 +258,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1598877544.48</float> <float>1620383045.9</float>
<string>UTC</string> <string>UTC</string>
</tuple> </tuple>
</state> </state>
......
...@@ -13684,6 +13684,13 @@ return new Parser; ...@@ -13684,6 +13684,13 @@ return new Parser;
); );
} }
return evt.target.response; return evt.target.response;
}, function (error) {
if ((error.target !== undefined) &&
(error.target.status === 404)) {
throw new jIO.util.jIOError("Cannot find attachment: " + action,
404);
}
throw error;
}); });
} }
throw new jIO.util.jIOError("ERP5: not support get attachment: " + action, throw new jIO.util.jIOError("ERP5: not support get attachment: " + action,
...@@ -15000,10 +15007,7 @@ return new Parser; ...@@ -15000,10 +15007,7 @@ return new Parser;
} catch (error) { } catch (error) {
reject(error); reject(error);
} }
return new RSVP.Queue() return new RSVP.Queue(result)
.push(function () {
return result;
})
.push(function (final_result) { .push(function (final_result) {
canceller(); canceller();
resolve(final_result); resolve(final_result);
...@@ -15035,10 +15039,7 @@ return new Parser; ...@@ -15035,10 +15039,7 @@ return new Parser;
reject(error); reject(error);
} }
tx.oncomplete = function () { tx.oncomplete = function () {
return new RSVP.Queue() return new RSVP.Queue(result)
.push(function () {
return result;
})
.push(resolve, function (error) { .push(resolve, function (error) {
canceller(); canceller();
reject(error); reject(error);
......
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