Support Article
Pop-ups remain open after logoff
SA-13235
Summary
When a new window is opened from the user portal and then the user logs off from the initial user portal, the new window does not close automatically.
Error Messages
Not Applicable.
Steps to Reproduce
- Configure any onclick event to launch a Harness in new window.
- At run time launch that new window from User Portal.
- Click logoff and see that new window is still there.
Root Cause
The root cause of this problem is a defect in Pegasystems’ code/rules. The closing of opened windows was not handled for casemanager.
Resolution
This issue is resolved through the following local-change:
- Modify pyCaseManager navigation rule by adding "Run Script" before "Log off" action for log off menu item click
- In the Run script give "closeWindows"
- Add below script to UserWorkForm html rule.
<script>
function closeWindows() {
var curWin= null;
while (null != (curWin= application.openedWindows.pop())) {
try{
curWin.close();
}catch(e){}
}
}
pega.u.d.attachOnUnload(closeWindows);
</script>
Published August 27, 2015 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.