Merge pull request #2147 from gmurphey/master

Tweaking slug logic in post settings.
This commit is contained in:
Hannah Wolfe 2014-02-08 22:13:03 +00:00
commit 4a6d90c949

View File

@ -99,7 +99,10 @@
var self = this, var self = this,
slug = self.model.get('slug'), slug = self.model.get('slug'),
slugEl = e.currentTarget, slugEl = e.currentTarget,
newSlug = slugEl.value; newSlug = slugEl.value,
placeholder = slugEl.placeholder;
newSlug = (_.isEmpty(newSlug) && placeholder) ? placeholder : newSlug;
// If the model doesn't currently // If the model doesn't currently
// exist on the server (aka has no id) // exist on the server (aka has no id)