1
0
mirror of https://github.com/exane/not-gwent-online synced 2024-12-23 21:03:14 +00:00

close login

This commit is contained in:
devfake 2015-06-23 10:16:52 +02:00
parent ba0965c016
commit 25dc50a081
2 changed files with 8 additions and 2 deletions

View File

@ -37,7 +37,13 @@ module.exports = {
setTimeout(function() {
$('.login-username').focus();
}, 500);
}, 300);
},
closeLogin: function(e) {
if($(e.target).context.className == 'modal active') {
this.modal = false;
}
}
}

View File

@ -1,4 +1,4 @@
<div class="modal" v-class="active: modal">
<div class="modal" v-class="active: modal" v-on="click: closeLogin">
<div class="modal-banner">
<div class="wrap-modal-login">