Merge pull request #754 from bjarnef/dev-v7-U4-6179

Highlight recycle bin tree node
This commit is contained in:
Sebastiaan Janssen
2015-07-31 11:20:44 +02:00
2 changed files with 6 additions and 2 deletions

View File

@@ -8,7 +8,7 @@
*
*/
function ContentRecycleBinController($scope, $routeParams, dataTypeResource) {
function ContentRecycleBinController($scope, $routeParams, dataTypeResource, navigationService) {
//ensures the list view doesn't actually load until we query for the list view config
// for the section
@@ -24,6 +24,8 @@ function ContentRecycleBinController($scope, $routeParams, dataTypeResource) {
$scope.model = { config: { entityType: $routeParams.section } };
// sync tree node
navigationService.syncTree({ tree: "content", path: ["-1", $routeParams.id], forceReload: false });
}
angular.module('umbraco').controller("Umbraco.Editors.Content.RecycleBinController", ContentRecycleBinController);

View File

@@ -8,7 +8,7 @@
*
*/
function MediaRecycleBinController($scope, $routeParams, dataTypeResource) {
function MediaRecycleBinController($scope, $routeParams, dataTypeResource, navigationService) {
//ensures the list view doesn't actually load until we query for the list view config
// for the section
@@ -24,6 +24,8 @@ function MediaRecycleBinController($scope, $routeParams, dataTypeResource) {
$scope.model = { config: { entityType: $routeParams.section } };
// sync tree node
navigationService.syncTree({ tree: "media", path: ["-1", $routeParams.id], forceReload: false });
}
angular.module('umbraco').controller("Umbraco.Editors.Media.RecycleBinController", MediaRecycleBinController);