Core.ui.Popup window close event

English! place to talk about development, programming and coding
Post Reply
kecvkt
Znuny newbie
Posts: 1
Joined: 17 Oct 2016, 09:06
Znuny Version: OTRS5

Core.ui.Popup window close event

Post by kecvkt »

Dear OTRS Developer!

I create a link with Core.UI.Popup js function.
When i press to the link its work good.(The _blank page open)
But, i want to refresh the side when the _blank page close.

How can i do it?

Thanks!
RStraub
Znuny guru
Posts: 2210
Joined: 13 Mar 2014, 09:16
Znuny Version: 6.0.14
Real Name: Rolf Straub

Re: Core.ui.Popup window close event

Post by RStraub »

Is this a "normal" otrs popup?

In this case, use the Layout function "PopupClose":
return $LayoutObject->PopupClose(
Reload => 1,
);
For example, submit the form parameter Subaction=Close:
if ($Subaction eq 'Close') {
return $LayoutObject->PopupClose(
Reload => 1,
);
}
Currently using: OTRS 6.0.14 -- MariaDB -- Ubuntu 16 LTS
Post Reply