Sha256: 95c7bd151cbb827e47d90441d8414e0c4c6174880e97e0689f7e3220cf16152a
Contents?: true
Size: 665 Bytes
Versions: 10
Compression:
Stored size: 665 Bytes
Contents
'use strict'; (function () { _.extend(scrivito, { handleAjaxError: function handleAjaxError(error) { var message = undefined; // -- PATCH BEGINS HERE -- if (error && typeof error === 'object' && error.message) { scrivito.alertDialog(error.message); } else { message = scrivito.t('ajax_error.communication'); scrivito.errorDialog(scrivito.t('ajax_error.message_for_editor'), [message]); } // -- PATCH ENDS HERE -- scrivito.logError(error); }, withAjaxErrorHandling: function withAjaxErrorHandling(promise) { return promise['catch'](scrivito.handleAjaxError); } }); })();
Version data entries
10 entries across 10 versions & 1 rubygems