Skip to content
Snippets Groups Projects
Commit 4e021c12 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Fix travis error

parent 39ebaec0
No related branches found
No related tags found
No related merge requests found
......@@ -869,7 +869,7 @@ class FormFile
else $this->infofiles['extensions'][$ext]++;
// Preview
if (! empty($conf->use_javascript_ajax) && ! empty($conf->browser->layout != 'phone'))
if (! empty($conf->use_javascript_ajax) && ($conf->browser->layout != 'phone'))
{
$tmparray = getAdvancedPreviewUrl($modulepart, $relativepath, 1);
if ($tmparray && $tmparray['url']) $tmpout.= '<li><a href="'.$tmparray['url'].'"'.($tmparray['css']?' class="'.$tmparray['css'].'"':'').($tmparray['mime']?' mime="'.$tmparray['mime'].'"':'').($tmparray['target']?' target="'.$tmparray['target'].'"':'').'>'.img_picto('','detail').' '.$langs->trans("Preview").' '.$ext.'</a></li>';
......
......@@ -1899,7 +1899,7 @@ if (! function_exists("llxFooter"))
if (! empty($delayedhtmlcontent)) print $delayedhtmlcontent;
// TODO Move this in lib_head.js
// TODO Move this in lib_head.js.php
// Wrapper to show tooltips (html or onclick popup)
if (! empty($conf->use_javascript_ajax) && empty($conf->dol_no_mouse_hover))
......@@ -1922,7 +1922,7 @@ if (! function_exists("llxFooter"))
}
// Wrapper to manage document_preview
if (! empty($conf->use_javascript_ajax) && ! empty($conf->browser->layout != 'phone'))
if (! empty($conf->use_javascript_ajax) && ($conf->browser->layout != 'phone'))
{
print "\n<!-- JS CODE TO ENABLE document_preview -->\n";
print '<script type="text/javascript">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment