fix alert("1"), caused by data-window-close being a string

This commit is contained in:
Ralf Becker 2013-08-27 16:49:57 +00:00
parent 3d12c2b591
commit ccab8e0ac1

View File

@ -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);
} }