1
0
mirror of https://github.com/exane/not-gwent-online synced 2025-08-30 05:57:30 +00:00

simple register

This commit is contained in:
devfake
2015-06-23 16:24:49 +02:00
parent dbe76f7038
commit 1fa8ef073d
3 changed files with 35 additions and 2 deletions

View File

@@ -18,8 +18,23 @@ module.exports = {
if( ! this.username || ! this.password || ! this.email) {
$('.form-error').hide().fadeIn('fast');
return false;
}
$('.form-error').hide();
$('.icon-action-load').show();
this.$http.post('./api/register', this.$data, function(data) {
location.reload();
}).error(function (data) {
$('.icon-action-load').hide();
})
return false;
}
}

View File

@@ -1,5 +1,5 @@
.icon-load {
background: url(../img/load.gif) no-repeat;
.icon-action-load {
background: url(../img/action-load.gif) no-repeat;
width: 16px;
height: 16px;
float: right;