mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-14 18:52:05 +03: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
@ -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…
Reference in New Issue
Block a user