Skip to content

Commit

Permalink
Upgrade jquery to 3.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mrtuvn committed Nov 3, 2021
1 parent e88d5bd commit 47dbe8c
Show file tree
Hide file tree
Showing 8 changed files with 11,462 additions and 11,557 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ define([
if (this.options.bindSubmit) {
this._bindSubmit();
}
$(this.options.addToCartButtonSelector).attr('disabled', false);
$(this.options.addToCartButtonSelector).prop('disabled', false);
},

/**
Expand Down Expand Up @@ -101,7 +101,7 @@ define([
formData = new FormData(form[0]);

$.ajax({
url: form.attr('action'),
url: form.prop('action'),
data: formData,
type: 'post',
dataType: 'json',
Expand Down Expand Up @@ -201,7 +201,7 @@ define([

addToCartButton.addClass(this.options.addToCartButtonDisabledClass);
addToCartButton.find('span').text(addToCartButtonTextWhileAdding);
addToCartButton.attr('title', addToCartButtonTextWhileAdding);
addToCartButton.prop('title', addToCartButtonTextWhileAdding);
},

/**
Expand All @@ -213,14 +213,14 @@ define([
addToCartButton = $(form).find(this.options.addToCartButtonSelector);

addToCartButton.find('span').text(addToCartButtonTextAdded);
addToCartButton.attr('title', addToCartButtonTextAdded);
addToCartButton.prop('title', addToCartButtonTextAdded);

setTimeout(function () {
var addToCartButtonTextDefault = self.options.addToCartButtonTextDefault || $t('Add to Cart');

addToCartButton.removeClass(self.options.addToCartButtonDisabledClass);
addToCartButton.find('span').text(addToCartButtonTextDefault);
addToCartButton.attr('title', addToCartButtonTextDefault);
addToCartButton.prop('title', addToCartButtonTextDefault);
}, 1000);
}
});
Expand Down
36 changes: 1 addition & 35 deletions app/code/Magento/Theme/view/adminhtml/requirejs-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,41 +46,7 @@ var config = {
'dropdown': 'mage/dropdown_old',
'collapsible': 'mage/collapsible',
'menu': 'mage/backend/menu',
'jstree': 'jquery/jstree/jquery.jstree',
'jquery-ui-modules/widget': 'jquery/ui',
'jquery-ui-modules/core': 'jquery/ui',
'jquery-ui-modules/accordion': 'jquery/ui',
'jquery-ui-modules/autocomplete': 'jquery/ui',
'jquery-ui-modules/button': 'jquery/ui',
'jquery-ui-modules/datepicker': 'jquery/ui',
'jquery-ui-modules/dialog': 'jquery/ui',
'jquery-ui-modules/draggable': 'jquery/ui',
'jquery-ui-modules/droppable': 'jquery/ui',
'jquery-ui-modules/effect-blind': 'jquery/ui',
'jquery-ui-modules/effect-bounce': 'jquery/ui',
'jquery-ui-modules/effect-clip': 'jquery/ui',
'jquery-ui-modules/effect-drop': 'jquery/ui',
'jquery-ui-modules/effect-explode': 'jquery/ui',
'jquery-ui-modules/effect-fade': 'jquery/ui',
'jquery-ui-modules/effect-fold': 'jquery/ui',
'jquery-ui-modules/effect-highlight': 'jquery/ui',
'jquery-ui-modules/effect-scale': 'jquery/ui',
'jquery-ui-modules/effect-pulsate': 'jquery/ui',
'jquery-ui-modules/effect-shake': 'jquery/ui',
'jquery-ui-modules/effect-slide': 'jquery/ui',
'jquery-ui-modules/effect-transfer': 'jquery/ui',
'jquery-ui-modules/effect': 'jquery/ui',
'jquery-ui-modules/menu': 'jquery/ui',
'jquery-ui-modules/mouse': 'jquery/ui',
'jquery-ui-modules/position': 'jquery/ui',
'jquery-ui-modules/progressbar': 'jquery/ui',
'jquery-ui-modules/resizable': 'jquery/ui',
'jquery-ui-modules/selectable': 'jquery/ui',
'jquery-ui-modules/slider': 'jquery/ui',
'jquery-ui-modules/sortable': 'jquery/ui',
'jquery-ui-modules/spinner': 'jquery/ui',
'jquery-ui-modules/tabs': 'jquery/ui',
'jquery-ui-modules/tooltip': 'jquery/ui'
'jstree': 'jquery/jstree/jquery.jstree'
}
},
'deps': [
Expand Down
Loading

0 comments on commit 47dbe8c

Please sign in to comment.