Folderbrowser tree sync

This commit is contained in:
perploug
2013-12-05 13:04:28 +01:00
parent cfe0b2f9e5
commit 9733c5c031
2 changed files with 8 additions and 1 deletions

View File

@@ -50,6 +50,9 @@ function MediaFolderBrowserDashboardController($rootScope, $scope, assetsService
$scope.loadChildren($scope.options.formData.currentFolder);
$scope.queue = [];
$scope.filesUploading = [];
var path = ["-1"];
navigationService.syncTree({ tree: "media", path: path });
});
$scope.$on('fileuploadprocessalways', function(e,data) {

View File

@@ -11,7 +11,7 @@ angular.module("umbraco")
};
})
.controller("Umbraco.PropertyEditors.FolderBrowserController",
function ($rootScope, $scope, assetsService, $routeParams, $timeout, $element, $location, umbRequestHelper, mediaResource, imageHelper) {
function ($rootScope, $scope, assetsService, $routeParams, $timeout, $element, $location, umbRequestHelper, mediaResource, imageHelper, navigationService, editorState) {
var dialogOptions = $scope.$parent.dialogOptions;
$scope.creating = $routeParams.create;
@@ -44,6 +44,10 @@ angular.module("umbraco")
$scope.loadChildren($scope.options.formData.currentFolder);
$scope.queue = [];
$scope.filesUploading = [];
var path = editorState.current.path;
alert(path);
navigationService.syncTree({ tree: "media", path: path });
});
$scope.$on('fileuploadprocessalways', function(e,data) {