Merge pull request #171 from faser2k/file_dialog_dont_show_error_icons

yui: don't show silly error image for attachments
This commit is contained in:
OpenXE-ERP 2025-02-05 10:29:42 +01:00 committed by GitHub
commit eabf09928b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -4230,7 +4230,12 @@ url:strUrl, success:function(html){strReturn = html;}, async:false
if(!function_exists('imagejpeg'))
{
$img = "'<img src=./themes/{$this->app->Conf->WFconf['defaulttheme']}/images/icon_img_error.png title=\"Keine GD-Erweiterung installiert\" />'";
$img = "concat('
<span style=\"width:100px;text-align:center;display:block;\">
<a href=\"index.php?module=dateien&action=send&id=',d.id,'\">
<img src=./themes/{$this->app->Conf->WFconf['defaulttheme']}/images/download.svg title=\"Datei anzeigen\" />
</a>
</span>')";
}else{
$img = "concat('<span style=\"width:100px;text-align:center;display:block;\"><a href=\"index.php?module=dateien&action=send&id=',d.id,'\"><img src=\"index.php?module=ajax&action=thumbnail&cmd=$cmd&id=',d.id,'\" style=\"border:0;max-width:100px;max-height:100px;\" /></a></span>')";
}