* Finish task #41743.

This commit is contained in:
sgm0422
2021-08-27 09:48:59 +08:00
parent 4cf1c0daa9
commit eac7ad0dee
+2 -2
View File
@@ -132,7 +132,7 @@ $sessionString .= session_name() . '=' . session_id();
function downloadFile(fileID, extension, imageWidth)
{
if(!fileID) return;
var fileTypes = 'txt,jpg,jpeg,gif,png,bmp';
var fileTypes = 'jpg,jpeg,gif,png,bmp';
var sessionString = '<?php echo $sessionString;?>';
var windowWidth = $(window).width();
var url = createLink('file', 'download', 'fileID=' + fileID + '&mouse=left') + sessionString;
@@ -143,7 +143,7 @@ function downloadFile(fileID, extension, imageWidth)
}
else
{
window.open(url, '_blank');
window.open(url, '_self');
}
return false;
}