From 119cf54e973b857090c19d302166fc4f0339fc62 Mon Sep 17 00:00:00 2001 From: Mads Rasmussen Date: Tue, 26 Jun 2018 14:02:21 +0200 Subject: [PATCH] open infinite doc type editor from info tab --- .../content/umbcontentnodeinfo.directive.js | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) 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) {