Skip to content

Commit 8945d30

Browse files
committed
MAGETWO-60982: AJAX calls does not process error responses
1 parent 4ec2c7e commit 8945d30

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

dev/tests/js/jasmine/tests/lib/mage/backend/bootstrap.test.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
* See COPYING.txt for license details.
44
*/
55
/* global jQuery */
6+
/* eslint-disable max-nested-callbacks */
67
define([
78
'jquery',
89
'squire',

lib/web/mage/backend/bootstrap.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,8 @@ define([
7575
* Error callback.
7676
*
7777
* @param {Object} jqXHR - The jQuery XMLHttpRequest object returned by $.ajax()
78-
* @param {String} status
79-
* @param {String} error
8078
*/
81-
error: function (jqXHR, status, error) {
79+
error: function (jqXHR) {
8280
$('body').notification('clear')
8381
.notification('add', {
8482
error: true,

0 commit comments

Comments
 (0)