From cfd47582c41e8293b2b506d635fc73678f3c906a Mon Sep 17 00:00:00 2001 From: tomazpu <32056440+tomazpu@users.noreply.github.com> Date: Thu, 15 Feb 2018 12:05:26 +0100 Subject: [PATCH 1/2] #55 Better popup loading on small screens --- js/wirecard/checkoutseamless/processing.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/js/wirecard/checkoutseamless/processing.js b/js/wirecard/checkoutseamless/processing.js index 5a0ce2b..4d67ded 100644 --- a/js/wirecard/checkoutseamless/processing.js +++ b/js/wirecard/checkoutseamless/processing.js @@ -125,11 +125,16 @@ Event.observe(window, 'load', function () { window.location.href = innerResponse.url; } else { + var width = 500; + if (document.body.clientWidth < 500) { + width = document.body.clientWidth; + } var oPopup = new Window({ id:'popup_window', className: 'magento', + windowClassName: 'magentopopup', url: innerResponse.url, - width: 500, + width: width, height: 500, minimizable: false, maximizable: false, @@ -144,7 +149,7 @@ Event.observe(window, 'load', function () { }); oPopup.setZIndex(100); oPopup.showCenter(true); - console.log(oPopup); + $('#popup_window_content').width(width); } } else { From ca53d1c44dd9cf608efcfb3f2399a532900aa689 Mon Sep 17 00:00:00 2001 From: tomazpu <32056440+tomazpu@users.noreply.github.com> Date: Thu, 15 Feb 2018 12:10:01 +0100 Subject: [PATCH 2/2] #36 Update plugin version --- app/code/community/Wirecard/CheckoutSeamless/Helper/Data.php | 2 +- app/code/community/Wirecard/CheckoutSeamless/Model/Abstract.php | 2 +- app/code/community/Wirecard/CheckoutSeamless/etc/config.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/code/community/Wirecard/CheckoutSeamless/Helper/Data.php b/app/code/community/Wirecard/CheckoutSeamless/Helper/Data.php index f7fe190..e7160d4 100644 --- a/app/code/community/Wirecard/CheckoutSeamless/Helper/Data.php +++ b/app/code/community/Wirecard/CheckoutSeamless/Helper/Data.php @@ -33,7 +33,7 @@ class Wirecard_CheckoutSeamless_Helper_Data extends Mage_Payment_Helper_Data { - protected $_pluginVersion = '4.2.6'; + protected $_pluginVersion = '4.2.7'; protected $_pluginName = 'Wirecard/CheckoutSeamless'; /** diff --git a/app/code/community/Wirecard/CheckoutSeamless/Model/Abstract.php b/app/code/community/Wirecard/CheckoutSeamless/Model/Abstract.php index 789c55b..df71cb0 100644 --- a/app/code/community/Wirecard/CheckoutSeamless/Model/Abstract.php +++ b/app/code/community/Wirecard/CheckoutSeamless/Model/Abstract.php @@ -53,7 +53,7 @@ abstract class Wirecard_CheckoutSeamless_Model_Abstract extends Mage_Payment_Mod protected $_defaultLocale = 'en'; protected $_order; - protected $_pluginVersion = '4.2.5'; + protected $_pluginVersion = '4.2.7'; protected $_pluginName = 'Wirecard/CheckoutSeamless'; protected $_formBlockType = 'wirecard_checkoutseamless/form'; diff --git a/app/code/community/Wirecard/CheckoutSeamless/etc/config.xml b/app/code/community/Wirecard/CheckoutSeamless/etc/config.xml index 20b4470..bd80588 100644 --- a/app/code/community/Wirecard/CheckoutSeamless/etc/config.xml +++ b/app/code/community/Wirecard/CheckoutSeamless/etc/config.xml @@ -34,7 +34,7 @@ - 4.2.6 + 4.2.7