Change GetScaffold to GetEmpty

This commit is contained in:
Per Ploug
2015-06-05 12:15:43 +02:00
parent 55daa2ee45
commit 1eb98a7478
2 changed files with 3 additions and 3 deletions

View File

@@ -112,13 +112,13 @@ function contentTypeResource($q, $http, umbRequestHelper) {
'Failed to retrieve all content types');
},
getScaffold: function () {
getEmpty: function () {
return umbRequestHelper.resourcePromise(
$http.get(
umbRequestHelper.getApiUrl(
"contentTypeApiBaseUrl",
"GetScaffold")),
"getEmpty")),
'Failed to retrieve content type scaffold');
},

View File

@@ -71,7 +71,7 @@ namespace Umbraco.Web.Editors
return dto;
}
public Umbraco.Web.Models.ContentEditing.ContentTypeDisplay GetScaffold()
public Umbraco.Web.Models.ContentEditing.ContentTypeDisplay GetEmpty()
{
var ct = new ContentType(-1);
var dto = Mapper.Map<IContentType, Umbraco.Web.Models.ContentEditing.ContentTypeDisplay>(ct);