From e5d7f6fd04f0177dda5bbb2ef0e9b28de63bb910 Mon Sep 17 00:00:00 2001 From: Nicholas-Westby Date: Tue, 3 Nov 2015 22:39:36 -0800 Subject: [PATCH] Partial implementation of detailed node info (show node in "view" is clicked): http://issues.umbraco.org/issue/U4-5764 --- .../contentpicker/contentpicker.controller.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/src/views/propertyeditors/contentpicker/contentpicker.controller.js b/src/Umbraco.Web.UI.Client/src/views/propertyeditors/contentpicker/contentpicker.controller.js index 91c128cc97..da8d8f9a82 100644 --- a/src/Umbraco.Web.UI.Client/src/views/propertyeditors/contentpicker/contentpicker.controller.js +++ b/src/Umbraco.Web.UI.Client/src/views/propertyeditors/contentpicker/contentpicker.controller.js @@ -1,7 +1,7 @@ //this controller simply tells the dialogs service to open a mediaPicker window //with a specified callback, this callback will receive an object with a selection on it -function contentPickerController($scope, dialogService, entityResource, editorState, $log, iconHelper, $routeParams, fileManager, contentEditingHelper, contentResource, navigationService) { +function contentPickerController($location, $scope, dialogService, entityResource, editorState, $log, iconHelper, $routeParams, fileManager, contentEditingHelper, contentResource, navigationService) { function trim(str, chr) { var rgxtrim = (!chr) ? new RegExp('^\\s+|\\s+$', 'g') : new RegExp('^' + chr + '+|' + chr + '+$', 'g'); @@ -150,7 +150,8 @@ function contentPickerController($scope, dialogService, entityResource, editorSt .getById(id) .then(function (data) { navigationService.syncTree({ tree: "content", path: data.path, forceReload: false, activate: true }); - //TODO: Need to load node too: https://our.umbraco.org/forum/developers/api-questions/72584-programmatically-load-content-node-in-back-office + var routePath = "content/content/edit/" + id.toString(); + $location.path(routePath).search(""); }); }