Fix another popup window.close

This commit is contained in:
Hadi Nategh 2014-12-12 15:16:59 +00:00
parent 6eedc38a42
commit a87e9840fe

View File

@ -185,7 +185,7 @@ class filemanager_select
$js = "window.opener.CKEDITOR.tools.callFunction(". $js = "window.opener.CKEDITOR.tools.callFunction(".
$content['ckeditorfuncnum'].",'". $content['ckeditorfuncnum'].",'".
htmlspecialchars($download_url)."',". htmlspecialchars($download_url)."',".
"'');\nwindow.close();"; "'');\negw(window).close();";
} }
if(egw_json_response::isJSONResponse() && !($content['method'] == 'ckeditor_return')) if(egw_json_response::isJSONResponse() && !($content['method'] == 'ckeditor_return'))
{ {
@ -196,7 +196,7 @@ class filemanager_select
} }
// Ahh! // Ahh!
// The vfs-select widget looks for this // 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 else
{ {