mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-03 23:00:14 -05:00
Merge pull request #622 from sebgie/bug_set_null
This commit is contained in:
commit
362cd425cc
1 changed files with 5 additions and 0 deletions
|
@ -155,6 +155,7 @@
|
|||
},
|
||||
|
||||
saveSettings: function () {
|
||||
var themes = this.model.get('availableThemes');
|
||||
this.model.unset('availableThemes');
|
||||
this.model.save({
|
||||
title: this.$('#blog-title').val(),
|
||||
|
@ -166,6 +167,7 @@
|
|||
success: this.saveSuccess,
|
||||
error: this.saveError
|
||||
});
|
||||
this.model.set({availableThemes: themes});
|
||||
},
|
||||
|
||||
templateName: 'settings/general',
|
||||
|
@ -189,12 +191,15 @@
|
|||
'click .button-save': 'saveSettings'
|
||||
},
|
||||
saveSettings: function () {
|
||||
var themes = this.model.get('availableThemes');
|
||||
this.model.unset('availableThemes');
|
||||
this.model.save({
|
||||
description: this.$('#blog-description').val()
|
||||
}, {
|
||||
success: this.saveSuccess,
|
||||
error: this.saveError
|
||||
});
|
||||
this.model.set({availableThemes: themes});
|
||||
},
|
||||
|
||||
templateName: 'settings/content',
|
||||
|
|
Loading…
Add table
Reference in a new issue