Ensures dialogs doesnt reopen the menu

This commit is contained in:
perploug
2013-11-28 15:34:24 +01:00
parent ff52755636
commit d140eab12d

View File

@@ -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