1
0
mirror of https://github.com/exane/not-gwent-online synced 2025-10-09 07:39:08 +00:00

little register logic

This commit is contained in:
devfake
2015-06-23 15:10:01 +02:00
parent 75990b84c7
commit 313c660ba5
4 changed files with 25 additions and 4 deletions

View File

@@ -4,11 +4,21 @@ module.exports = {
inherit: true,
data: function() {
return {
username: '',
password: '',
email: ''
}
},
methods: {
register: function(e) {
e.preventDefault();
console.log("bal");
if( ! this.username || ! this.password || ! this.email) {
$('.form-error').hide().fadeIn('fast');
}
return false;
}