mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-25 11:55:03 +03:00
Fixes undefined this in settings.js
Because this and self. Missed it from previous commit :/
This commit is contained in:
parent
5a1c02b5d7
commit
f10343079b
@ -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…
Reference in New Issue
Block a user