Skip to content
This repository has been archived by the owner on Dec 1, 2023. It is now read-only.

Commit

Permalink
Update JS to match Magento 2.4.6-p2
Browse files Browse the repository at this point in the history
  • Loading branch information
davidwindell committed Aug 18, 2023
1 parent cd6928b commit cbafc2c
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 183 deletions.
77 changes: 0 additions & 77 deletions Magento_Theme/web/js/responsive.js

This file was deleted.

24 changes: 12 additions & 12 deletions Magento_Theme/web/js/theme.js
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/

define([
'jquery',
'mage/smart-keyboard-handler',
'mage/mage',
'mage/ie-class-fixer',
'domReady!'
], function ($, keyboardHandler) {
'use strict';

if ($('body').hasClass('checkout-cart-index')) {
if ($('#co-shipping-method-form .fieldset.rates').length > 0 &&
$('#co-shipping-method-form .fieldset.rates :checked').length === 0
) {
$('#block-shipping').on('collapsiblecreate', function () {
$('#block-shipping').collapsible('forceActivate');
});
}
}

$('.cart-summary').mage('sticky', {
container: '#maincontent'
});

$('.panel.header > .header.links').clone().appendTo('#store\\.links');
$('#store\\.links li a').each(function () {
var id = $(this).attr('id');

if (id !== undefined) {
$(this).attr('id', id + '_mobile');
}
});
keyboardHandler.apply();
});
});
6 changes: 5 additions & 1 deletion web/js/navigation-menu.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
/**
* @deprecated
* @see lib/web/mage/menu.js
Expand Down Expand Up @@ -663,4 +667,4 @@ define([
});

return $.mage.navigationMenu;
});
});
68 changes: 0 additions & 68 deletions web/js/responsive.js

This file was deleted.

25 changes: 0 additions & 25 deletions web/js/theme.js

This file was deleted.

0 comments on commit cbafc2c

Please sign in to comment.