diff --git a/src/Umbraco.Web.UI.Client/src/common/directives/components/content/umbcontentnodeinfo.directive.js b/src/Umbraco.Web.UI.Client/src/common/directives/components/content/umbcontentnodeinfo.directive.js index d93df1cdd5..3b16df0f86 100644 --- a/src/Umbraco.Web.UI.Client/src/common/directives/components/content/umbcontentnodeinfo.directive.js +++ b/src/Umbraco.Web.UI.Client/src/common/directives/components/content/umbcontentnodeinfo.directive.js @@ -1,7 +1,7 @@ (function () { 'use strict'; - function ContentNodeInfoDirective($timeout, $location, logResource, eventsService, userService, localizationService, dateHelper) { + function ContentNodeInfoDirective($timeout, $location, logResource, eventsService, userService, localizationService, dateHelper, editorService) { function link(scope, element, attrs, ctrl) { @@ -67,9 +67,17 @@ loadAuditTrail(); }; - scope.openDocumentType = function (documentType) { - var url = "/settings/documenttypes/edit/" + documentType.id; - $location.url(url); + scope.openDocumentType = function (documentType) { + var editor = { + id: documentType.id, + submit: function(model) { + editorService.close(); + }, + close: function() { + editorService.close(); + } + }; + editorService.documentTypeEditor(editor); }; scope.updateTemplate = function (templateAlias) {