|
5 | 5 | */
|
6 | 6 |
|
7 | 7 | /** @var \Magento\Framework\View\Helper\SecureHtmlRenderer $secureRenderer */
|
| 8 | +$blockId = $block->getId(); |
8 | 9 | ?>
|
9 |
| -<div id="product_composite_configure" class="product-configure-popup"> |
| 10 | +<div id="product_composite_configure" class="product-configure-popup-<?= $blockId ?>"> |
10 | 11 | <iframe name="product_composite_configure_iframe" id="product_composite_configure_iframe"></iframe>
|
11 | 12 | <?= /* @noEscape */ $secureRenderer->renderEventListenerAsTag(
|
12 | 13 | 'onload',
|
|
31 | 32 | </form>
|
32 | 33 | <?= /* @noEscape */ $secureRenderer->renderEventListenerAsTag(
|
33 | 34 | 'onsubmit',
|
34 |
| - "productConfigure.onConfirmBtn();event.preventDefault()", |
| 35 | + 'productConfigure.onConfirmBtn();event.preventDefault()', |
35 | 36 | '.product_composite_configure_form:last-of-type'
|
36 | 37 | ) ?>
|
37 | 38 |
|
|
40 | 41 | <?php $scriptString = <<<script
|
41 | 42 | prodCompConfIframe = document.querySelectorAll("iframe[name='product_composite_configure_iframe']");
|
42 | 43 | for (var i = 0; i < prodCompConfIframe.length; i++) {
|
43 |
| - prodCompConfIframe[i].style.display = "none"; |
| 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"; |
44 | 50 | }
|
45 | 51 | prodCompConfMessages = document.querySelectorAll(".product_composite_configure_messages");
|
46 | 52 | for (var i = 0; i < prodCompConfMessages.length; i++) {
|
|
58 | 64 | for (var i = 0; i < prodCompConfConf.length; i++) {
|
59 | 65 | prodCompConfConf[i].style.display = "none";
|
60 | 66 | }
|
61 |
| - prodConfPopup = document.querySelectorAll(".product-configure-popup"); |
62 |
| - for (var i = 0; i < prodConfPopup.length; i++) { |
63 |
| - prodConfPopup[i].style.display = "none"; |
64 |
| - } |
| 67 | + prodConfPopup = document.querySelector(".product-configure-popup-$blockId"); |
| 68 | + prodConfPopup.style.display = "none"; |
65 | 69 |
|
66 | 70 | require([
|
67 | 71 | "jquery",
|
|
0 commit comments