Skip to content

Commit d302c7c

Browse files
author
Anna Bukatar
committed
Merge branch '2.4-develop' of https://github.com/magento-l3/magento2ce into ACP2E-1258
2 parents e159581 + 5a022f6 commit d302c7c

File tree

19 files changed

+3488
-8403
lines changed

19 files changed

+3488
-8403
lines changed

app/code/Magento/Backend/view/adminhtml/web/js/dashboard/chart.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ define([
99
'chartJs',
1010
'jquery-ui-modules/widget',
1111
'chartjs/chartjs-adapter-moment',
12+
'chartjs/es6-shim.min',
1213
'moment'
1314
], function ($, Chart) {
1415
'use strict';

app/code/Magento/CheckoutAgreements/Test/Mftf/Test/AdminDeleteActiveTextTermEntityTest.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
<group value="mtf_migrated"/>
2121
</annotations>
2222
<before>
23+
<magentoCLI command="config:set {{EnableFlatRateConfigData.path}} {{EnableFlatRateConfigData.value}}" stepKey="enableFlatRate"/>
2324
<magentoCLI command="config:set checkout/options/enable_agreements 1" stepKey="setEnableTermsOnCheckout"/>
2425
<actionGroup ref="AdminLoginActionGroup" stepKey="LoginAsAdmin" />
2526
<createData entity="SimpleTwo" stepKey="createdProduct"/>
@@ -30,6 +31,8 @@
3031
<actionGroup ref="AdminTermsConditionsSaveTermActionGroup" stepKey="saveNewTerm"/>
3132
</before>
3233
<after>
34+
<!-- Disable shipping method for customer with default address -->
35+
<magentoCLI command="config:set {{DisableFlatRateConfigData.path}} {{DisableFlatRateConfigData.value}}" stepKey="disableFlatRate"/>
3336
<magentoCLI command="config:set checkout/options/enable_agreements 0" stepKey="setDisableTermsOnCheckout"/>
3437
<deleteData createDataKey="createdProduct" stepKey="deletedProduct"/>
3538
<actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/>

app/code/Magento/Swatches/view/adminhtml/web/js/form/element/swatch-visual.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ define([
240240
};
241241

242242
swatchComponents.iframe.off('load');
243-
swatchComponents.iframe.load(iframeHandler);
243+
swatchComponents.iframe.on('load', iframeHandler);
244244
swatchComponents.form.submit();
245245
$(this).val('');
246246
});

app/code/Magento/Swatches/view/adminhtml/web/js/visual.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ define([
374374
};
375375

376376
swatchComponents.iframe.off('load');
377-
swatchComponents.iframe.load(iframeHandler);
377+
swatchComponents.iframe.on('load', iframeHandler);
378378
swatchComponents.form.submit();
379379
$(this).val('');
380380
});

app/code/Magento/Theme/view/base/requirejs-config.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ var config = {
5252
}
5353
},
5454
shim: {
55-
'jquery/jquery-migrate': ['jquery'],
5655
'mage/adminhtml/backup': ['prototype'],
5756
'mage/captcha': ['prototype'],
5857
'mage/new-gallery': ['jquery'],
@@ -76,9 +75,6 @@ var config = {
7675
'tinycolor': 'jquery/spectrum/tinycolor',
7776
'jquery-ui-modules': 'jquery/ui-modules'
7877
},
79-
deps: [
80-
'jquery/jquery-migrate'
81-
],
8278
config: {
8379
text: {
8480
'headers': {

app/code/Magento/Ui/view/base/requirejs-config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ var config = {
77
deps: [],
88
shim: {
99
'chartjs/chartjs-adapter-moment': ['moment'],
10+
'chartjs/es6-shim.min': {},
1011
'tiny_mce_5/tinymce.min': {
1112
exports: 'tinyMCE'
1213
}

app/code/Magento/Ui/view/base/web/js/grid/columns/image-preview.js

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ define([
169169
* Update image data when image preview is opened
170170
*/
171171
updateImageData: function () {
172-
var img = $(this.previewImageSelector + ' img');
172+
var img = $(this.previewImageSelector + ' img'), self;
173173

174174
if (!img.get(0)) {
175175
setTimeout(function () {
@@ -179,10 +179,12 @@ define([
179179
this.updateHeight();
180180
this.scrollToPreview();
181181
} else {
182-
img.load(function () {
183-
this.updateHeight();
184-
this.scrollToPreview();
185-
}.bind(this));
182+
self = this;
183+
184+
img.on('load', function () {
185+
self.updateHeight();
186+
self.scrollToPreview();
187+
});
186188
}
187189
},
188190

app/design/frontend/Magento/blank/etc/view.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,7 @@
261261
<exclude>
262262
<item type="file">Lib::chartjs/Chart.min.js</item>
263263
<item type="file">Lib::chartjs/chartjs-adapter-moment.js</item>
264+
<item type="file">Lib::chartjs/es6-shim.min.js</item>
264265
<item type="file">Lib::jquery/jquery.min.js</item>
265266
<item type="file">Lib::jquery/jquery-ui.js</item>
266267
<item type="file">Lib::jquery/colorpicker/js/colorpicker.js</item>

app/design/frontend/Magento/luma/etc/view.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,7 @@
272272
<exclude>
273273
<item type="file">Lib::chartjs/Chart.min.js</item>
274274
<item type="file">Lib::chartjs/chartjs-adapter-moment.js</item>
275+
<item type="file">Lib::chartjs/es6-shim.min.js</item>
275276
<item type="file">Lib::jquery/jquery.min.js</item>
276277
<item type="file">Lib::jquery/jquery-ui.js</item>
277278
<item type="file">Lib::jquery/colorpicker/js/colorpicker.js</item>

composer.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -347,8 +347,7 @@
347347
"trentrichardson/jquery-timepicker-addon": "lib/web/jquery/jquery-ui-timepicker-addon.js",
348348
"components/jquery": [
349349
"lib/web/jquery.js",
350-
"lib/web/jquery/jquery.min.js",
351-
"lib/web/jquery/jquery-migrate.js"
350+
"lib/web/jquery/jquery.min.js"
352351
],
353352
"blueimp/jquery-file-upload": "lib/web/jquery/fileUploader",
354353
"components/jqueryui": [

0 commit comments

Comments
 (0)