Skip to content

Commit 11db4ca

Browse files
author
Stanislav Idolov
authored
ENGCOM-1259: #13685: Upgrading compatibility jQuery with 3.3.1 #14637
2 parents ea847d5 + 1e845a1 commit 11db4ca

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

app/code/Magento/Catalog/view/frontend/web/js/product/storage/data-storage.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ define([
228228
this.updateRequestConfig.data = queryBuilder.buildQuery(prepareAjaxParams);
229229
this.updateRequestConfig.data['store_id'] = store;
230230
this.updateRequestConfig.data['currency_code'] = currency;
231-
$.ajax(this.updateRequestConfig).success(function (data) {
231+
$.ajax(this.updateRequestConfig).done(function (data) {
232232
this.request = {};
233233
this.providerHandler(getParsedDataFromServer(data));
234234
}.bind(this));

app/code/Magento/ConfigurableProduct/view/adminhtml/templates/product/configurable/affected-attribute-set-selector/js.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@
8989
showLoader: true,
9090
context: $form
9191
})
92-
.success(function (data) {
92+
.done(function (data) {
9393
if (!data.error) {
9494
setAttributeSetId(data.id);
9595
closeDialogAndProcessForm($form);

app/code/Magento/ConfigurableProduct/view/adminhtml/web/js/variations/product-grid.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ define([
9595
type: 'GET',
9696
url: this._buildGridUrl(filterData),
9797
context: $('body')
98-
}).success(function (data) {
98+
}).done(function (data) {
9999
bootstrap(JSON.parse(data));
100100
});
101101
},

app/code/Magento/ConfigurableProduct/view/adminhtml/web/js/variations/variations.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,7 @@ define([
492492
dataType: 'json',
493493
showLoader: true,
494494
context: this
495-
}).success(function (data) {
495+
}).done(function (data) {
496496
if (!data.error) {
497497
this.set(
498498
'skeletonAttributeSet',
@@ -507,7 +507,7 @@ define([
507507
}
508508

509509
return false;
510-
}).error(function (xhr) {
510+
}).fail(function (xhr) {
511511
if (xhr.statusText === 'abort') {
512512
return;
513513
}

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,8 @@ define([
101101

102102
expect(suggestInstance.dropdown.hasClass('wrapper-test')).toBe(true);
103103
expect(suggestInstance.dropdown.is(':hidden')).toBe(true);
104-
expect(suggestInstance.element.closest('.test-input-wrapper').size()).toBeGreaterThan(0);
105-
expect(suggestInstance.element.closest('.' + options.className).size()).toBeGreaterThan(0);
104+
expect(suggestInstance.element.closest('.test-input-wrapper').length).toBeGreaterThan(0);
105+
expect(suggestInstance.element.closest('.' + options.className).length).toBeGreaterThan(0);
106106
expect(suggestInstance.element.attr('autocomplete')).toBe('off');
107107

108108
options.appendMethod = 'before';

lib/web/mage/collapsible.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -531,12 +531,12 @@ define([
531531
that.element.addClass(that.options.loadingClass);
532532
}
533533
that.content.attr('aria-busy', 'true');
534-
that.xhr.success(function (response) {
534+
that.xhr.done(function (response) {
535535
setTimeout(function () {
536536
that.content.html(response);
537537
}, 1);
538538
});
539-
that.xhr.complete(function (jqXHR, status) {
539+
that.xhr.always(function (jqXHR, status) {
540540
setTimeout(function () {
541541
if (status === 'abort') {
542542
that.content.stop(false, true);

0 commit comments

Comments
 (0)