0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-24 23:48:13 -05:00

Merge pull request #2439 from sebgie/move-slug

Rename getSlug to slug
This commit is contained in:
Hannah Wolfe 2014-03-28 17:12:55 +00:00
commit 878e31f56c

View file

@ -76,7 +76,7 @@
// and then update the placeholder value. // and then update the placeholder value.
if (title) { if (title) {
$.ajax({ $.ajax({
url: Ghost.paths.apiRoot + '/posts/getSlug/' + encodeURIComponent(title) + '/', url: Ghost.paths.apiRoot + '/posts/slug/' + encodeURIComponent(title) + '/',
success: function (result) { success: function (result) {
$postSettingSlugEl.attr('placeholder', result); $postSettingSlugEl.attr('placeholder', result);
} }