diff --git a/src/Umbraco.Web.UI.Client/src/views/media/edit.html b/src/Umbraco.Web.UI.Client/src/views/media/edit.html index f131b35e5b..85688b3339 100644 --- a/src/Umbraco.Web.UI.Client/src/views/media/edit.html +++ b/src/Umbraco.Web.UI.Client/src/views/media/edit.html @@ -1,64 +1,58 @@ -
- - + -
- -
+ -
-
-
- -
+ + - - -
-
-
+ - + -
- - - - - -
- - - -
- -
-
-
+ + +
-
+ - -
-
\ No newline at end of file + + + + + + + + + + + + + +
+ +
+ +
+ + +
+ + + + + diff --git a/src/Umbraco.Web.UI.Client/src/views/media/media.edit.controller.js b/src/Umbraco.Web.UI.Client/src/views/media/media.edit.controller.js index b74cfeb463..3969e6dd92 100644 --- a/src/Umbraco.Web.UI.Client/src/views/media/media.edit.controller.js +++ b/src/Umbraco.Web.UI.Client/src/views/media/media.edit.controller.js @@ -12,12 +12,17 @@ function mediaEditController($scope, $routeParams, appState, mediaResource, enti $scope.currentSection = appState.getSectionState("currentSection"); $scope.currentNode = null; //the editors affiliated node + $scope.page = {}; + $scope.page.menu = {}; + $scope.page.menu.currentSection = appState.getSectionState("currentSection"); + $scope.page.menu.currentNode = null; //the editors affiliated node + /** Syncs the content item to it's tree node - this occurs on first load and after saving */ function syncTreeNode(content, path, initialLoad) { if (!$scope.content.isChildOfListView) { navigationService.syncTree({ tree: "media", path: path.split(","), forceReload: initialLoad !== true }).then(function (syncArgs) { - $scope.currentNode = syncArgs.node; + $scope.page.menu.currentNode = syncArgs.node; }); } else if (initialLoad === true) { @@ -30,7 +35,7 @@ function mediaEditController($scope, $routeParams, appState, mediaResource, enti umbRequestHelper.resourcePromise( $http.get(content.treeNodeUrl), 'Failed to retrieve data for child node ' + content.id).then(function (node) { - $scope.currentNode = node; + $scope.page.menu.currentNode = node; }); } }