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

erp5_officejs: Remove "fail" usage in web page and illustration page view

Use of fail is now a coding crime
parent a0668dd8
No related merge requests found
...@@ -145,8 +145,7 @@ ...@@ -145,8 +145,7 @@
}) })
.push(function () { .push(function () {
return text_gadget.getElement(); return text_gadget.getElement();
}) }, function (error) {
.fail(function (error) {
var display_error_element; var display_error_element;
if (error === "Timed out after 5000 ms") { if (error === "Timed out after 5000 ms") {
display_error_element = display_error_element =
......
...@@ -146,8 +146,7 @@ ...@@ -146,8 +146,7 @@
}) })
.push(function () { .push(function () {
return text_gadget.getElement(); return text_gadget.getElement();
}) }, function (error) {
.fail(function (error) {
var display_error_element; var display_error_element;
if (error === "Timed out after 5000 ms") { if (error === "Timed out after 5000 ms") {
display_error_element = display_error_element =
......
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