|
7 | 7 | /** @var \Magento\Framework\View\Helper\SecureHtmlRenderer $secureRenderer */ |
8 | 8 | $blockId = $block->getId(); |
9 | 9 | ?> |
10 | | -<div id="product_composite_configure" class="product-configure-popup-<?= $block->escapeHtmlAttr($blockId) ?>"> |
| 10 | +<div id="product_composite_configure" class="product-configure-popup product-configure-popup-<?= $block->escapeHtmlAttr($blockId) ?>"> |
11 | 11 | <iframe name="product_composite_configure_iframe" id="product_composite_configure_iframe"></iframe> |
12 | 12 | <?= /* @noEscape */ $secureRenderer->renderEventListenerAsTag( |
13 | 13 | 'onload', |
@@ -39,31 +39,26 @@ $blockId = $block->getId(); |
39 | 39 | <div id="product_composite_configure_confirmed" class="product_composite_configure_confirmed"></div> |
40 | 40 |
|
41 | 41 | <?php $scriptString = <<<script |
42 | | - prodCompConfIframe = document.querySelectorAll("iframe[name='product_composite_configure_iframe']"); |
43 | | - for (var i = 0; i < prodCompConfIframe.length; i++) { |
44 | | - prodCompConfIframe[i].style.width = 0; |
45 | | - prodCompConfIframe[i].style.height = 0; |
46 | | - prodCompConfIframe[i].style.border = "0px solid #fff"; |
47 | | - prodCompConfIframe[i].style.position = "absolute"; |
48 | | - prodCompConfIframe[i].style.top = "-1000px"; |
49 | | - prodCompConfIframe[i].style.left = "-1000px"; |
50 | | - } |
51 | | - prodCompConfMessages = document.querySelectorAll(".product_composite_configure_messages"); |
52 | | - for (var i = 0; i < prodCompConfMessages.length; i++) { |
53 | | - prodCompConfMessages[i].style.display = "none"; |
54 | | - } |
55 | | - prodCompConfFormAdd = document.querySelectorAll(".product_composite_configure_form_additional"); |
56 | | - for (var i = 0; i < prodCompConfFormAdd.length; i++) { |
57 | | - prodCompConfFormAdd[i].style.display = "none"; |
58 | | - } |
59 | | - prodCompConfFormConf = document.querySelectorAll(".product_composite_configure_form_confirmed"); |
60 | | - for (var i = 0; i < prodCompConfFormConf.length; i++) { |
61 | | - prodCompConfFormConf[i].style.display = "none"; |
62 | | - } |
63 | | - prodCompConfConf = document.querySelectorAll(".product_composite_configure_confirmed"); |
64 | | - for (var i = 0; i < prodCompConfConf.length; i++) { |
65 | | - prodCompConfConf[i].style.display = "none"; |
66 | | - } |
| 42 | + prodCompConfIframe = document.querySelector(".product-configure-popup-$blockId iframe[name='product_composite_configure_iframe']"); |
| 43 | + prodCompConfIframe.style.width = 0; |
| 44 | + prodCompConfIframe.style.height = 0; |
| 45 | + prodCompConfIframe.style.border = "0px solid #fff"; |
| 46 | + prodCompConfIframe.style.position = "absolute"; |
| 47 | + prodCompConfIframe.style.top = "-1000px"; |
| 48 | + prodCompConfIframe.style.left = "-1000px"; |
| 49 | +
|
| 50 | + prodCompConfMessages = document.querySelector(".product-configure-popup-$blockId .product_composite_configure_messages"); |
| 51 | + prodCompConfMessages.style.display = "none"; |
| 52 | +
|
| 53 | + prodCompConfFormAdd = document.querySelector(".product-configure-popup-$blockId .product_composite_configure_form_additional"); |
| 54 | + prodCompConfFormAdd.style.display = "none"; |
| 55 | +
|
| 56 | + prodCompConfFormConf = document.querySelector(".product-configure-popup-$blockId .product_composite_configure_form_confirmed"); |
| 57 | + prodCompConfFormConf.style.display = "none"; |
| 58 | +
|
| 59 | + prodCompConfConf = document.querySelector(".product-configure-popup-$blockId .product_composite_configure_confirmed"); |
| 60 | + prodCompConfConf.style.display = "none"; |
| 61 | +
|
67 | 62 | prodConfPopup = document.querySelector(".product-configure-popup-$blockId"); |
68 | 63 | prodConfPopup.style.display = "none"; |
69 | 64 |
|
|
0 commit comments