mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-24 23:48:13 -05:00
commit
8b6a37dd69
1 changed files with 3 additions and 2 deletions
|
@ -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',
|
||||
|
|
Loading…
Add table
Reference in a new issue