[feature-13750]Closing all open popups

#1

My use case is, when a user opens a popup they are still able to resize the web browser which can cause Views to be reloaded if the container size grows or shrinks past its breakpoint. If this happens, I would like to close whatever popups are open at that time.

Is there a way to retrieve a list of all popup id’s that are currently open? I could then iterate through the list calling system.perspective.closePopup() on each id.

0 Likes

#2

There’s no way to access this information from scripting (at this time), although it would be relatively easy to add; I’ve filed an internal ticket to implement something along these lines.

1 Like