mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-27 22:49:56 -05:00
Merge pull request #4635 from ikhattab/fix-autosave-whitespace-title
Autosave for whitespace-only titles
This commit is contained in:
commit
994dee16d4
1 changed files with 1 additions and 1 deletions
|
@ -233,7 +233,7 @@ EditorControllerMixin = Ember.Mixin.create(MarkerManager, {
|
|||
this.set('status', status);
|
||||
|
||||
// Set a default title
|
||||
if (!this.get('titleScratch')) {
|
||||
if (!this.get('titleScratch').trim()) {
|
||||
this.set('titleScratch', '(Untitled)');
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue