From a87e9840fe82ee324076a0da45c4a0170a63b971 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Fri, 12 Dec 2014 15:16:59 +0000 Subject: [PATCH] Fix another popup window.close --- filemanager/inc/class.filemanager_select.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/filemanager/inc/class.filemanager_select.inc.php b/filemanager/inc/class.filemanager_select.inc.php index 64f6f7541a..bc105282ac 100644 --- a/filemanager/inc/class.filemanager_select.inc.php +++ b/filemanager/inc/class.filemanager_select.inc.php @@ -185,7 +185,7 @@ class filemanager_select $js = "window.opener.CKEDITOR.tools.callFunction(". $content['ckeditorfuncnum'].",'". htmlspecialchars($download_url)."',". - "'');\nwindow.close();"; + "'');\negw(window).close();"; } if(egw_json_response::isJSONResponse() && !($content['method'] == 'ckeditor_return')) { @@ -196,7 +196,7 @@ class filemanager_select } // Ahh! // The vfs-select widget looks for this - $response->script('this.selected_files = '.json_encode($files) . '; this.close();'); + $response->script('this.selected_files = '.json_encode($files) . '; egw(this).close();'); } else {