Skip to content

Commit b21f2a6

Browse files
committed
#13685: Fixed compatibility with jQuery 3.x replaced load() call with on('load')
as of https://jquery.com/upgrade-guide/3.0/#breaking-change-load-unload-and-error-removed
1 parent c36fb76 commit b21f2a6

File tree

1 file changed

+1
-1
lines changed
  • app/code/Magento/Bundle/view/adminhtml/templates/product/edit/bundle

1 file changed

+1
-1
lines changed

app/code/Magento/Bundle/view/adminhtml/templates/product/edit/bundle/option.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ function togglePriceType() {
299299
jQuery('#bundle_product_container').bundleProduct();
300300
jQuery('#product_bundle_container .collapse').collapse('hide');
301301

302-
jQuery(window).load(function() {
302+
jQuery(window).on('load', function() {
303303
togglePriceType();
304304
Event.observe('price_type', 'change', togglePriceType);
305305
});

0 commit comments

Comments
 (0)