Skip to content

Commit 672f0bb

Browse files
committed
MAGETWO-60982: AJAX calls does not process error responses
1 parent ea2941d commit 672f0bb

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

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

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

lib/web/mage/backend/bootstrap.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,10 @@ define([
7373

7474
/**
7575
* Error callback.
76+
*
77+
* @param {Object} jqXHR - The jQuery XMLHttpRequest object returned by $.ajax()
78+
* @param {String} status
79+
* @param {String} error
7680
*/
7781
error: function (jqXHR, status, error) {
7882
$('body').notification('clear')
@@ -84,7 +88,7 @@ define([
8488
),
8589

8690
/**
87-
* @param {*} message
91+
* @param {String} message
8892
*/
8993
insertMethod: function (message) {
9094
var $wrapper = $('<div/>').html(message);

0 commit comments

Comments
 (0)