diff --git a/htdocs/main.inc.php b/htdocs/main.inc.php
index 16f23ffbf4a..0378d6a1b45 100644
--- a/htdocs/main.inc.php
+++ b/htdocs/main.inc.php
@@ -857,7 +857,7 @@ function top_htmlhead($head, $title='', $disablejs=0, $disablehead=0, $arrayofjs
$mini='';$ext='.js';
if (isset($conf->global->MAIN_OPTIMIZE_SPEED) && ($conf->global->MAIN_OPTIMIZE_SPEED & 0x01)) { $mini='_mini'; $ext='.jgz'; } // mini='_mini', ext='.gz'
- // JQuery. Must be before other includes (prototype/scriptaculous/...)
+ // JQuery. Must be before other includes (prototype/scriptaculous)
print ''."\n";
print ''."\n";
print ''."\n";
@@ -868,6 +868,13 @@ function top_htmlhead($head, $title='', $disablejs=0, $disablehead=0, $arrayofjs
{
print ''."\n";
}
+
+ // This one is required for some Ajax features
+ if (! empty($conf->global->MAIN_USE_PROTOTYPE))
+ {
+ print ''."\n";
+ print ''."\n";
+ }
}
// Output module javascript