mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-23 22:11:09 +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,
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user