mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-27 22:49:56 -05:00
Merge pull request #4876 from jaswilli/untitled-slug
Fix regression in re-setting slug on untitled post
This commit is contained in:
commit
3a1e408b9c
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue