0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-24 23:48:13 -05:00

Fix regression in re-setting slug on untitled post

Refs #4748
This commit is contained in:
Jason Williams 2015-02-01 05:17:24 +00:00
parent 8f5120150c
commit 9d8a68332c

View file

@ -201,7 +201,7 @@ var PostSettingsMenuController = Ember.Controller.extend(SettingsMenuMixin, {
// generate a slug if a post is new and doesn't have a title yet or
// if the title is still '(Untitled)' and the slug is unaltered.
if ((this.get('model.isNew') && !title) || title === '(Untitled)') {
debounceId = Ember.run.debounce(this, 'generateAndSetSlug', ['slug'], 700);
debounceId = Ember.run.debounce(this, 'generateAndSetSlug', 'model.slug', 700);
}
this.set('debounceId', debounceId);