Fix: ajout possibilité de désactiver 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 title Titre page web
|
||||||
* \param disablejs N'affiche pas les liens vers les js (Ex: qd fonction utilisée par sous formulaire Ajax)
|
* \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;
|
global $user, $conf, $langs, $db, $micro_start_time;
|
||||||
|
|
||||||
@ -542,6 +542,8 @@ 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 '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" http://www.w3.org/TR/1999/REC-html401-19991224/strict.dtd>';
|
||||||
print "\n";
|
print "\n";
|
||||||
print "<html>\n";
|
print "<html>\n";
|
||||||
|
if ($disablehead == 0)
|
||||||
|
{
|
||||||
print "<head>\n";
|
print "<head>\n";
|
||||||
|
|
||||||
print $langs->lang_header();
|
print $langs->lang_header();
|
||||||
@ -599,6 +601,7 @@ function top_htmlhead($head, $title='', $disablejs=0)
|
|||||||
|
|
||||||
print "</head>\n";
|
print "</head>\n";
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Affiche en-tete HTML + BODY + Barre de menu superieure
|
* \brief Affiche en-tete HTML + BODY + Barre de menu superieure
|
||||||
|
|||||||
@ -28,7 +28,7 @@
|
|||||||
|
|
||||||
require('../main.inc.php');
|
require('../main.inc.php');
|
||||||
|
|
||||||
top_htmlhead("", "", 1);
|
top_htmlhead("", "", 1, 1);
|
||||||
|
|
||||||
print '<body id="mainbody">';
|
print '<body id="mainbody">';
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user