From 6c3b63cf55a78b283930fd71a96ef142705004bb Mon Sep 17 00:00:00 2001 From: Shannon Date: Thu, 3 Sep 2015 16:32:25 +0200 Subject: [PATCH] fixes issue with legacy dialogs not closing the nav --- src/Umbraco.Web.UI.Client/lib/umbraco/LegacyUmbClientMgr.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Umbraco.Web.UI.Client/lib/umbraco/LegacyUmbClientMgr.js b/src/Umbraco.Web.UI.Client/lib/umbraco/LegacyUmbClientMgr.js index 98a9987019..75f0850ee2 100644 --- a/src/Umbraco.Web.UI.Client/lib/umbraco/LegacyUmbClientMgr.js +++ b/src/Umbraco.Web.UI.Client/lib/umbraco/LegacyUmbClientMgr.js @@ -384,6 +384,11 @@ Umbraco.Sys.registerNamespace("Umbraco.Application"); //just call the native dialog close() method to remove the dialog lastModal.close(); + + //if it's the last one close them all + if (this._modal.length == 0) { + getRootScope().$emit("app.closeDialogs", undefined); + } } else { //instead of calling just the dialog service we funnel it through the global