не работает кнопка вход

remotes/origin/hotfix/auth-popup-fix-5-07-19
gzbender 7 years ago
parent 7de2b39968
commit d1bbd75514
  1. 5
      web/src/js/modules/auth.js
  2. 11
      web/src/js/modules/popup.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),

@ -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){

Loading…
Cancel
Save