mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-24 23:48:13 -05:00
parent
de1c332cde
commit
85f0c71d82
1 changed files with 3 additions and 2 deletions
|
@ -94,7 +94,8 @@
|
||||||
var name = this.$('.name').val(),
|
var name = this.$('.name').val(),
|
||||||
email = this.$('.email').val(),
|
email = this.$('.email').val(),
|
||||||
password = this.$('.password').val(),
|
password = this.$('.password').val(),
|
||||||
validationErrors = [];
|
validationErrors = [],
|
||||||
|
self = this;
|
||||||
|
|
||||||
if (!validator.isLength(name, 1)) {
|
if (!validator.isLength(name, 1)) {
|
||||||
validationErrors.push("Please enter a name.");
|
validationErrors.push("Please enter a name.");
|
||||||
|
@ -131,7 +132,7 @@
|
||||||
window.location.href = msg.redirect;
|
window.location.href = msg.redirect;
|
||||||
},
|
},
|
||||||
error: function (xhr) {
|
error: function (xhr) {
|
||||||
this.submitted = "no";
|
self.submitted = "no";
|
||||||
Ghost.notifications.clearEverything();
|
Ghost.notifications.clearEverything();
|
||||||
Ghost.notifications.addItem({
|
Ghost.notifications.addItem({
|
||||||
type: 'error',
|
type: 'error',
|
||||||
|
|
Loading…
Add table
Reference in a new issue