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