mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-27 18:52:14 +03:00
Merge pull request #2147 from gmurphey/master
Tweaking slug logic in post settings.
This commit is contained in:
commit
4a6d90c949
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user