From 48ec795e7b9450f036006a2ba3285565554aeb5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20Lyngs=C3=B8?= Date: Mon, 11 Mar 2019 14:54:11 +0100 Subject: [PATCH] do not open as infinite editing yet. --- .../grid/grid.listviewlayout.controller.js | 24 ++----------------- 1 file changed, 2 insertions(+), 22 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/src/views/propertyeditors/listview/layouts/grid/grid.listviewlayout.controller.js b/src/Umbraco.Web.UI.Client/src/views/propertyeditors/listview/layouts/grid/grid.listviewlayout.controller.js index 70dd2926b6..9a2ff4975d 100644 --- a/src/Umbraco.Web.UI.Client/src/views/propertyeditors/listview/layouts/grid/grid.listviewlayout.controller.js +++ b/src/Umbraco.Web.UI.Client/src/views/propertyeditors/listview/layouts/grid/grid.listviewlayout.controller.js @@ -116,28 +116,8 @@ listViewHelper.selectHandler(folder, $index, $scope.folders, $scope.selection, $event); } - function goToItem(node, $event, $index) { - - var contentEditor = { - id: node.id, - submit: function (model) { - // update the node - node.name = model.contentNode.name; - // TODO: node.description = model.contentNode.description; - node.published = model.contentNode.hasPublishedVersion; - if (entityType !== "Member") { - entityResource.getUrl(model.contentNode.id, entityType).then(function (data) { - node.url = data; - }); - } - editorService.close(); - }, - close: function () { - editorService.close(); - } - }; - editorService.contentEditor(contentEditor); - + function goToItem(item, $event, $index) { + $location.path($scope.entityType + '/' + $scope.entityType + '/edit/' + item.id); } activate();