diff --git a/view/adminhtml/templates/form/mollie_paymentlink_javascript.phtml b/view/adminhtml/templates/form/mollie_paymentlink_javascript.phtml index a2e2a307797..7751f2e42d5 100644 --- a/view/adminhtml/templates/form/mollie_paymentlink_javascript.phtml +++ b/view/adminhtml/templates/form/mollie_paymentlink_javascript.phtml @@ -8,29 +8,29 @@ use Magento\Framework\View\Helper\SecureHtmlRenderer; /** @var SecureHtmlRenderer $secureRenderer */ -$scriptString = <<'; diff --git a/view/adminhtml/templates/order/shipment/create/payment_hold_warning.phtml b/view/adminhtml/templates/order/shipment/create/payment_hold_warning.phtml index 5018f42fa81..37485d101a4 100644 --- a/view/adminhtml/templates/order/shipment/create/payment_hold_warning.phtml +++ b/view/adminhtml/templates/order/shipment/create/payment_hold_warning.phtml @@ -16,12 +16,12 @@ use Magento\Framework\View\Helper\SecureHtmlRenderer; { - let warningElement = document.querySelector('.mollie-manual-capture-warning'); - let fields = Array.from(document.querySelectorAll('.qty-item')); + let warningElement = document.querySelector(\'.mollie-manual-capture-warning\'); + let fields = Array.from(document.querySelectorAll(\'.qty-item\')); fields.forEach(function (item) { - item.addEventListener('change', function (event) { + item.addEventListener(\'change\', function (event) { checkFields(); }); }); @@ -31,11 +31,17 @@ $scriptString = <<'; diff --git a/view/adminhtml/templates/system/config/button/apikey.phtml b/view/adminhtml/templates/system/config/button/apikey.phtml index 79b69a60dae..edb832cc125 100644 --- a/view/adminhtml/templates/system/config/button/apikey.phtml +++ b/view/adminhtml/templates/system/config/button/apikey.phtml @@ -13,44 +13,52 @@ use Mollie\Payment\Block\Adminhtml\System\Config\Form\Apikey\Checker; * @var SecureHtmlRenderer $secureRenderer */ -$scriptString = <<'; +} echo $block->getButtonHtml(); diff --git a/view/adminhtml/templates/system/config/button/compatibility.phtml b/view/adminhtml/templates/system/config/button/compatibility.phtml index 9afa0b54d1b..f0161393009 100644 --- a/view/adminhtml/templates/system/config/button/compatibility.phtml +++ b/view/adminhtml/templates/system/config/button/compatibility.phtml @@ -13,45 +13,53 @@ use Mollie\Payment\Block\Adminhtml\System\Config\Form\Compatibility\Checker; * @var SecureHtmlRenderer $secureRenderer */ -$scriptString = <<'; +} echo $block->getButtonHtml();