Spacedeck 6.0 CI WIP; more style, UX cleanups; fix account dialog; add more color swatches; new landing page
This commit is contained in:
@@ -11,6 +11,7 @@ SpacedeckUsers = {
|
||||
login_email: "",
|
||||
login_password: "",
|
||||
signup_password: "",
|
||||
signup_invite_code: "",
|
||||
signup_password_confirmation: "",
|
||||
account_remove_error: null,
|
||||
loading_user: false,
|
||||
@@ -122,7 +123,7 @@ SpacedeckUsers = {
|
||||
signup_guest: function(on_success) {
|
||||
},
|
||||
|
||||
signup_submit: function($event, name, email, password, password_confirmation, on_success) {
|
||||
signup_submit: function($event, name, email, password, password_confirmation, invite_code, on_success) {
|
||||
this.creating_user = true;
|
||||
this.signup_error = null;
|
||||
|
||||
@@ -136,7 +137,7 @@ SpacedeckUsers = {
|
||||
$event.stopPropagation();
|
||||
}
|
||||
|
||||
create_user(name, email, password, password_confirmation, function(session) {
|
||||
create_user(name, email, password, password_confirmation, invite_code, function(session) {
|
||||
this.creating_user = false;
|
||||
this.login_submit(email, password, null, on_success);
|
||||
}.bind(this), function(req) {
|
||||
@@ -152,8 +153,8 @@ SpacedeckUsers = {
|
||||
}.bind(this));
|
||||
},
|
||||
|
||||
signup_submit_modal: function($event, name, email, password, password_confirmation) {
|
||||
this.signup_submit($event, name, email, password, password_confirmation, function() {
|
||||
signup_submit_modal: function($event, name, email, password, password_confirmation, invite_code) {
|
||||
this.signup_submit($event, name, email, password, password_confirmation, invite_code, function() {
|
||||
alert("Success.");
|
||||
location.reload();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user