From 538bd0a62b745a9576cb6a2431ab385c5ff45ba1 Mon Sep 17 00:00:00 2001 From: Iryna Lagno Date: Fri, 28 Aug 2015 11:40:56 +0300 Subject: [PATCH] MAGETWO-42164: Login Modal Window popup duplicates on all pages --- .../view/frontend/web/js/view/authentication-popup.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/code/Magento/Customer/view/frontend/web/js/view/authentication-popup.js b/app/code/Magento/Customer/view/frontend/web/js/view/authentication-popup.js index dfef07a4b87af..99aec7dc7cd3e 100644 --- a/app/code/Magento/Customer/view/frontend/web/js/view/authentication-popup.js +++ b/app/code/Magento/Customer/view/frontend/web/js/view/authentication-popup.js @@ -39,7 +39,10 @@ define( /** Init popup login window */ setModalElement: function (element) { - authenticationPopup.createPopUp(element); + // create pop up if it doesn't exist + if (authenticationPopup.modalWindow == null) { + authenticationPopup.createPopUp(element) + } }, /** Is login form enabled for current customer */