Commit 5f612796 authored by Roque's avatar Roque

erp5_core: patch in cancellation error handling

parent cb729958
......@@ -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