mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-23 15:18:58 +01:00
fix alert("1"), caused by data-window-close being a string
This commit is contained in:
parent
3d12c2b591
commit
ccab8e0ac1
@ -101,7 +101,7 @@
|
|||||||
var window_close = egw_script.getAttribute('data-window-close');
|
var window_close = egw_script.getAttribute('data-window-close');
|
||||||
if (window_close)
|
if (window_close)
|
||||||
{
|
{
|
||||||
if (typeof window_close == 'string' && window_close !== 'true')
|
if (typeof window_close == 'string' && window_close !== '1')
|
||||||
{
|
{
|
||||||
alert(window_close);
|
alert(window_close);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user