0
Fork 0
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:
Hannah Wolfe 2014-07-19 00:14:15 +01:00
commit 2498098095

View file

@ -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);
}
},