mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -05:00
Merge pull request #3320 from jaswilli/dup-slug-get
Prevent duplicate slug request on saving new post
This commit is contained in:
commit
2498098095
1 changed files with 1 additions and 1 deletions
|
@ -45,7 +45,7 @@ var PostSettingsMenuController = Ember.ObjectController.extend({
|
|||
});
|
||||
},
|
||||
titleObserver: function () {
|
||||
if (this.get('isNew')) {
|
||||
if (this.get('isNew') && !this.get('title')) {
|
||||
Ember.run.debounce(this, 'generateSlugPlaceholder', 700);
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Add table
Reference in a new issue