0
Fork 0
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:
Ihab Khattab 2014-12-12 16:44:24 +02:00
parent b9310a2716
commit 0f37f3d4e5

View file

@ -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)');
}