mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-24 23:58:54 +01:00
Allow popups to set just a message without refreshing before closing
This commit is contained in:
parent
1b72d90ec5
commit
6792b9831c
@ -131,6 +131,15 @@
|
||||
{
|
||||
alert(window_close);
|
||||
}
|
||||
// If there's a message & opener, set it
|
||||
if(window.opener && egw_script.getAttribute('data-message'))
|
||||
{
|
||||
var data = {};
|
||||
if ((data = egw_script.getAttribute('data-message')) && (data = JSON.parse(data)))
|
||||
{
|
||||
window.opener.egw_message.apply(window.opener, data);
|
||||
}
|
||||
}
|
||||
window.close();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user