Include JavaScript in header and not in footer.

This commit is contained in:
Michal Čihař
2005-10-13 15:21:17 +00:00
parent 688144cd52
commit 610ef32714
3 changed files with 4 additions and 2 deletions

View File

@@ -16,6 +16,8 @@ $Source$
detection to only place where it is currently used. detection to only place where it is currently used.
* header.inc.php, css/phpmyadmin.css.php: Define CSS normal way and not * header.inc.php, css/phpmyadmin.css.php: Define CSS normal way and not
by writing through JavaScript. by writing through JavaScript.
* footer.inc.php, header.inc.php: Include JavaScript in header and not in
footer.
2005-10-13 Sebastian Mendel <cybot_tm@users.sourceforge.net> 2005-10-13 Sebastian Mendel <cybot_tm@users.sourceforge.net>
* left.php: preselect db if only one db * left.php: preselect db if only one db

View File

@@ -122,7 +122,6 @@ if (isset($GLOBALS['userlink']) && $GLOBALS['userlink']) {
include('./config.footer.inc.php'); include('./config.footer.inc.php');
?> ?>
<script type="text/javascript" language="javascript" src="libraries/tooltip.js"></script>
</body> </body>
</html> </html>
<?php <?php

View File

@@ -129,6 +129,7 @@ if (empty($GLOBALS['is_header_sent'])) {
// Reloads the navigation frame via JavaScript if required // Reloads the navigation frame via JavaScript if required
PMA_reloadNavigation(); PMA_reloadNavigation();
?> ?>
<script src="libraries/tooltip.js" type="text/javascript" language="javascript"></script>
<meta name="OBGZip" content="<?php echo ($cfg['OBGzip'] ? 'true' : 'false'); ?>" /> <meta name="OBGZip" content="<?php echo ($cfg['OBGzip'] ? 'true' : 'false'); ?>" />
</head> </head>