From ccab8e0ac1b63e6ff8deb69a0342204c6b29b117 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 27 Aug 2013 16:49:57 +0000 Subject: [PATCH] fix alert("1"), caused by data-window-close being a string --- phpgwapi/js/jsapi/egw.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpgwapi/js/jsapi/egw.js b/phpgwapi/js/jsapi/egw.js index b352f94f6c..b7b845d560 100644 --- a/phpgwapi/js/jsapi/egw.js +++ b/phpgwapi/js/jsapi/egw.js @@ -101,7 +101,7 @@ var window_close = egw_script.getAttribute('data-window-close'); if (window_close) { - if (typeof window_close == 'string' && window_close !== 'true') + if (typeof window_close == 'string' && window_close !== '1') { alert(window_close); }