diff --git a/site/client/app/modules/landing/views/landing.html b/site/client/app/modules/landing/views/landing.html index da4bc29..9ac4fd9 100644 --- a/site/client/app/modules/landing/views/landing.html +++ b/site/client/app/modules/landing/views/landing.html @@ -18,6 +18,8 @@ Play as guest Login + Nope Nope + \ No newline at end of file diff --git a/site/client/app/modules/session/components/register.js b/site/client/app/modules/session/components/register.js index 81c9ea0..56261c9 100644 --- a/site/client/app/modules/session/components/register.js +++ b/site/client/app/modules/session/components/register.js @@ -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; } diff --git a/site/client/app/modules/session/views/register.html b/site/client/app/modules/session/views/register.html index 133c112..1258027 100644 --- a/site/client/app/modules/session/views/register.html +++ b/site/client/app/modules/session/views/register.html @@ -1,7 +1,7 @@