From d140eab12d136b49b0a048b8bee252da5abcbd5d Mon Sep 17 00:00:00 2001 From: perploug Date: Thu, 28 Nov 2013 15:34:24 +0100 Subject: [PATCH] Ensures dialogs doesnt reopen the menu --- .../src/common/services/navigation.service.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/src/common/services/navigation.service.js b/src/Umbraco.Web.UI.Client/src/common/services/navigation.service.js index ac39e82b8b..98cdade62a 100644 --- a/src/Umbraco.Web.UI.Client/src/common/services/navigation.service.js +++ b/src/Umbraco.Web.UI.Client/src/common/services/navigation.service.js @@ -680,8 +680,13 @@ function navigationService($rootScope, $routeParams, $log, $location, $q, $timeo * @description * hides the currently open dialog */ - hideDialog: function () { - this.showMenu(undefined, { skipDefault: true, node: appState.getMenuState("currentNode") }); + hideDialog: function (showMenu) { + + setMode("default"); + + if(showMenu){ + this.showMenu(undefined, { skipDefault: true, node: appState.getMenuState("currentNode") }); + } }, /** * @ngdoc method