Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop
This commit is contained in:
commit
2dbae7b808
@ -803,7 +803,7 @@ class FormFile
|
|||||||
{
|
{
|
||||||
$out='<dl class="dropdown inline-block">
|
$out='<dl class="dropdown inline-block">
|
||||||
<dt><a data-ajax="false" href="#" onClick="return false;">'.img_picto('', 'listlight').'</a></dt>
|
<dt><a data-ajax="false" href="#" onClick="return false;">'.img_picto('', 'listlight').'</a></dt>
|
||||||
<dd><div class="multichoicedoc"><ul class="ulselectedfields" style="display: none;">';
|
<dd><div class="multichoicedoc" style="position:absolute;left:100px;" ><ul class="ulselectedfields" style="display: none;">';
|
||||||
$tmpout='';
|
$tmpout='';
|
||||||
|
|
||||||
// Loop on each file found
|
// Loop on each file found
|
||||||
|
|||||||
@ -5828,7 +5828,7 @@ function getImageFileNameForSize($file, $extName, $extImgTarget='')
|
|||||||
*/
|
*/
|
||||||
function getAdvancedPreviewUrl($modulepart, $relativepath)
|
function getAdvancedPreviewUrl($modulepart, $relativepath)
|
||||||
{
|
{
|
||||||
global $conf;
|
global $conf, $langs;
|
||||||
|
|
||||||
if (empty($conf->use_javascript_ajax)) return '';
|
if (empty($conf->use_javascript_ajax)) return '';
|
||||||
|
|
||||||
@ -5837,7 +5837,7 @@ function getAdvancedPreviewUrl($modulepart, $relativepath)
|
|||||||
//$mime_preview[]='archive';
|
//$mime_preview[]='archive';
|
||||||
$num_mime = array_search(dol_mimetype($relativepath, '', 1), $mime_preview);
|
$num_mime = array_search(dol_mimetype($relativepath, '', 1), $mime_preview);
|
||||||
|
|
||||||
if ($num_mime !== false) return 'javascript:document_preview(\''.dol_escape_js(DOL_URL_ROOT.'/document.php?modulepart='.$modulepart.'&attachment=0&file='.$relativepath).'\', \''.dol_mimetype($relativepath).'\', \''.dol_escape_js('Preview').'\')';
|
if ($num_mime !== false) return 'javascript:document_preview(\''.dol_escape_js(DOL_URL_ROOT.'/document.php?modulepart='.$modulepart.'&attachment=0&file='.$relativepath).'\', \''.dol_mimetype($relativepath).'\', \''.dol_escape_js($langs->trans('Preview')).'\')';
|
||||||
else return '';
|
else return '';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user