1
0
mirror of https://github.com/exane/not-gwent-online synced 2024-10-31 10:36:53 +00:00
not-gwent-online/site/client/app/modules/session/components/register.js
2015-06-23 15:10:01 +02:00

26 lines
411 B
JavaScript

module.exports = {
template: require('./../views/register.html'),
inherit: true,
data: function() {
return {
username: '',
password: '',
email: ''
}
},
methods: {
register: function(e) {
e.preventDefault();
if( ! this.username || ! this.password || ! this.email) {
$('.form-error').hide().fadeIn('fast');
}
return false;
}
}
};