We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 51996a1 commit b30ab69Copy full SHA for b30ab69
app/code/Magento/Shipping/view/frontend/templates/tracking/popup.phtml
@@ -60,3 +60,18 @@ $results = $block->getTrackingInfo();
60
</button>
61
</div>
62
63
+<script>
64
+ require([
65
+ 'jquery',
66
+ 'prototype'
67
+ ], function (jQuery) {
68
+ var hideActions = function () {
69
+ jQuery('.actions button.close').hide();
70
+ };
71
+
72
+ /* hide the close button when the content doesn't open in a modal window */
73
+ if (window.opener === null || typeof window.opener === "undefined") {
74
+ hideActions();
75
+ }
76
+ });
77
+</script>
0 commit comments