diff --git a/htdocs/main.inc.php b/htdocs/main.inc.php index cc139a132d2..d17efe5025c 100644 --- a/htdocs/main.inc.php +++ b/htdocs/main.inc.php @@ -728,6 +728,8 @@ else $heightforframes=48; + + // Functions @@ -838,26 +840,17 @@ 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' - print ''."\n"; + // JQuery. Must be before other includes (prototype/scriptaculous) + print ''."\n"; print ''."\n"; print ''."\n"; - // This one is required for all Ajax features + // This one is required for lot of Ajax features if (! defined('DISABLE_PROTOTYPE')) { print ''."\n"; print ''."\n"; } - // This one is required for boxes - if (! defined('DISABLE_SCRIPTACULOUS')) - { - print ''."\n"; - //print ''."\n"; - //print ''."\n"; - $listofscripts='effects,dragdrop'; - if ($conf->global->COMPANY_USE_SEARCH_TO_SELECT) $listofscripts.=',controls'; // For Ajax.Autocompleter - print ''."\n"; - } } // Output module javascript