0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-24 23:48:13 -05:00

Fix scoping issue on signup

closes #2429
This commit is contained in:
Declan Cook 2014-03-17 00:20:01 +00:00 committed by Declan Cook
parent de1c332cde
commit 85f0c71d82

View file

@ -94,7 +94,8 @@
var name = this.$('.name').val(),
email = this.$('.email').val(),
password = this.$('.password').val(),
validationErrors = [];
validationErrors = [],
self = this;
if (!validator.isLength(name, 1)) {
validationErrors.push("Please enter a name.");
@ -131,7 +132,7 @@
window.location.href = msg.redirect;
},
error: function (xhr) {
this.submitted = "no";
self.submitted = "no";
Ghost.notifications.clearEverything();
Ghost.notifications.addItem({
type: 'error',