mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-13 22:41:32 -05:00
Autosave for whitespace-only titles
closes #4625 - trim white space form `titleScratch` to enable autosave for whitespace-only titles
This commit is contained in:
parent
b9310a2716
commit
0f37f3d4e5
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…
Reference in a new issue