fixes issue with legacy dialogs not closing the nav

This commit is contained in:
Shannon
2015-09-03 16:32:25 +02:00
parent b883c7cb11
commit 6c3b63cf55

View File

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