0
Fork 0
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:
Jason Williams 2014-12-12 10:19:07 -06:00
commit 994dee16d4

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