mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-03 23:00:14 -05:00
Fixes undefined this in settings.js
Because this and self. Missed it from previous commit :/
This commit is contained in:
parent
1421bbc675
commit
ef2570e082
1 changed files with 3 additions and 2 deletions
|
@ -81,12 +81,13 @@
|
|||
},
|
||||
|
||||
saveSettings: function () {
|
||||
var self = this;
|
||||
this.model.save({
|
||||
title: this.$('#blog-title').val(),
|
||||
email: this.$('#email-address').val()
|
||||
}, {
|
||||
success: function () {
|
||||
this.addSubview(new Ghost.Views.NotificationCollection({
|
||||
self.addSubview(new Ghost.Views.NotificationCollection({
|
||||
model: [{
|
||||
type: 'success',
|
||||
message: 'Saved',
|
||||
|
@ -95,7 +96,7 @@
|
|||
}));
|
||||
},
|
||||
error: function () {
|
||||
this.addSubview(new Ghost.Views.NotificationCollection({
|
||||
self.addSubview(new Ghost.Views.NotificationCollection({
|
||||
model: [{
|
||||
type: 'error',
|
||||
message: 'Something went wrong, not saved :(',
|
||||
|
|
Loading…
Add table
Reference in a new issue