Does anybody know how I can close all modal dialogs created by Dojo ? Apparently there used to be a dojo.popup.closeAll function, but this is no longer available in the latest version of the Dojo API that comes with Spring JS.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
That’s right…. the reason that method isn’t there anymore is that from 1.0, whoever opens a popup is in charge of closing it. It’s an architecture change I made.
Most widgets (like Menu) monitor when they’ve been blurred, and then close their child popup. So, you could probably get the effect you wanted by switching focus to the document itself, or to some random node. Of course that’s a workaround.
Bill