From d1bbd7551455f026c4bbe76a741523ab8d8140e3 Mon Sep 17 00:00:00 2001 From: gzbender Date: Fri, 5 Jul 2019 10:49:41 +0300 Subject: [PATCH] =?UTF-8?q?=D0=BD=D0=B5=20=D1=80=D0=B0=D0=B1=D0=BE=D1=82?= =?UTF-8?q?=D0=B0=D0=B5=D1=82=20=D0=BA=D0=BD=D0=BE=D0=BF=D0=BA=D0=B0=20?= =?UTF-8?q?=D0=B2=D1=85=D0=BE=D0=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/js/modules/auth.js | 5 ----- web/src/js/modules/popup.js | 11 ++++++++++- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/web/src/js/modules/auth.js b/web/src/js/modules/auth.js index 9557a78a..c921b0c7 100644 --- a/web/src/js/modules/auth.js +++ b/web/src/js/modules/auth.js @@ -13,11 +13,6 @@ $(document).ready(function () { goPass = auth.find('.js-auth-go-pass'), goEnter = auth.find('.js-auth-go-enter'); - $('.js-header-enter').on('click', function () { - pass.hide(); - login.show(); - }); - type.on('click', function (e) { e.preventDefault(); let _this = $(this), diff --git a/web/src/js/modules/popup.js b/web/src/js/modules/popup.js index c774c6ef..39e63c04 100644 --- a/web/src/js/modules/popup.js +++ b/web/src/js/modules/popup.js @@ -277,7 +277,16 @@ $(document).ready(function () { }); } - showPopup(); + const showDef = showPopup(); + + if( data === '.js-popup-auth') { + showDef.then(() => { + const login = auth.find('.js-auth-login'); + const pass = auth.find('.js-auth-pass'); + pass.css('display', 'none'); + login.css('display', 'block'); + }); + } }); $('.js-popup-close').on('click', function(e){