LUN-1677: dissmiss window if it's opened in a popup
Merge pull request #2 from pbs/LUN-1677

LUN-1677: dissmiss window if it's opened in a popup