mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Fix: ajout possibilit de dsactiver la HEAD top_htmlhead() car l'autocompletion ne s'affichait plus
This commit is contained in:
parent
2632248a27
commit
1687fda7f6
|
|
@ -525,7 +525,7 @@ else
|
|||
* \param title Titre page web
|
||||
* \param disablejs N'affiche pas les liens vers les js (Ex: qd fonction utilisée par sous formulaire Ajax)
|
||||
*/
|
||||
function top_htmlhead($head, $title='', $disablejs=0)
|
||||
function top_htmlhead($head, $title='', $disablejs=0, $disablehead=0)
|
||||
{
|
||||
global $user, $conf, $langs, $db, $micro_start_time;
|
||||
|
||||
|
|
@ -542,7 +542,9 @@ function top_htmlhead($head, $title='', $disablejs=0)
|
|||
//print '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" http://www.w3.org/TR/1999/REC-html401-19991224/strict.dtd>';
|
||||
print "\n";
|
||||
print "<html>\n";
|
||||
print "<head>\n";
|
||||
if ($disablehead == 0)
|
||||
{
|
||||
print "<head>\n";
|
||||
|
||||
print $langs->lang_header();
|
||||
print $head;
|
||||
|
|
@ -587,8 +589,8 @@ function top_htmlhead($head, $title='', $disablejs=0)
|
|||
|
||||
if (! $disablejs && ($conf->use_javascript || $conf->use_ajax))
|
||||
{
|
||||
print '<script language="javascript" type="text/javascript" src="'.DOL_URL_ROOT.'/lib/lib_head.js"></script>'."\n";
|
||||
}
|
||||
print '<script language="javascript" type="text/javascript" src="'.DOL_URL_ROOT.'/lib/lib_head.js"></script>'."\n";
|
||||
}
|
||||
if (! $disablejs && $conf->use_ajax)
|
||||
{
|
||||
print '<script language="javascript" type="text/javascript" src="'.DOL_URL_ROOT.'/includes/scriptaculous/lib/prototype.js"></script>'."\n";
|
||||
|
|
@ -598,6 +600,7 @@ function top_htmlhead($head, $title='', $disablejs=0)
|
|||
}
|
||||
|
||||
print "</head>\n";
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@
|
|||
|
||||
require('../main.inc.php');
|
||||
|
||||
top_htmlhead("", "", 1);
|
||||
top_htmlhead("", "", 1, 1);
|
||||
|
||||
print '<body id="mainbody">';
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user