Skip to content

Commit

Permalink
Merge pull request TryGhost#2147 from gmurphey/master
Browse files Browse the repository at this point in the history
Tweaking slug logic in post settings.
  • Loading branch information
ErisDS committed Feb 8, 2014
2 parents 85e997b + 89aa7c6 commit 4a6d90c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion core/client/views/post-settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,10 @@
var self = this,
slug = self.model.get('slug'),
slugEl = e.currentTarget,
newSlug = slugEl.value;
newSlug = slugEl.value,
placeholder = slugEl.placeholder;

newSlug = (_.isEmpty(newSlug) && placeholder) ? placeholder : newSlug;

// If the model doesn't currently
// exist on the server (aka has no id)
Expand Down

0 comments on commit 4a6d90c

Please sign in to comment.