Commit d10e91d51c2bd951dfa759f2ac30461ae3ea8fbe
1 parent
083a9ce3
Exists in
master
and in
5 other branches
Fix click on icon button of 'Entrar'
Showing
1 changed file
with
2 additions
and
1 deletions
Show diff stats
js/main.js
... | ... | @@ -939,10 +939,11 @@ define(['jquery', 'handlebars', 'fastclick', 'proposal_app', 'handlebars_helpers |
939 | 939 | var $target = $(e.target); |
940 | 940 | |
941 | 941 | var isLoginButton = ($target.attr('id') === 'login-button'); |
942 | + var isLoginButtonIcon = $target.hasClass('icon-login'); | |
942 | 943 | var requireLogin = $target.hasClass('require-main-login'); |
943 | 944 | var isChildOfPanel = ($target.closest(loginPanelId).length !== 0); |
944 | 945 | |
945 | - if( !isLoginButton && !isChildOfPanel && !requireLogin ){ | |
946 | + if( !isLoginButton && !isLoginButtonIcon && !isChildOfPanel && !requireLogin ){ | |
946 | 947 | $loginPanel.hide(); |
947 | 948 | } |
948 | 949 | }); | ... | ... |