Commit efb2304f authored by Roque's avatar Roque Committed by Kazuhiko Shiozaki

erp5_core: patch in cancellation error handling

parent 32075375
......@@ -57,7 +57,10 @@
this.element.classList.toggle('editor-maximize');
}
return this.triggerMaximize.apply(this, param_list)
.push(undefined, function () {
.push(undefined, function (error) {
if (!(error instanceof RSVP.CancellationError)) {
throw error;
}
if (gadget.element.classList.contains('editor-maximize')) {
gadget.element.classList.remove('editor-maximize');
}
......
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