Define CSS normal way and not by writing through JavaScript.

This commit is contained in:
Michal Čihař
2005-10-13 15:11:49 +00:00
parent 65b357e886
commit 688144cd52
3 changed files with 7 additions and 6 deletions

View File

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

View File

@@ -442,6 +442,10 @@ div#serverstatus table.statuslist {
margin-bottom: 1em;
}
/* end serverstatus */
img.lightbulb {
cursor: pointer;
}
<?php
$_valid_css = array( 'left', 'right', 'print' );

View File

@@ -61,11 +61,6 @@ if (empty($GLOBALS['is_header_sent'])) {
&& typeof(parent.document.title) == 'string') {
parent.document.title = '<?php echo PMA_sanitize($title); ?>';
}
document.write('<style type="text/css">');
document.write('img.lightbulb { cursor: pointer; }');
document.write('<\/style>');
<?php
// Add some javascript instructions if required
if (isset($js_to_run) && $js_to_run == 'functions.js') {
@@ -254,4 +249,4 @@ if (empty($GLOBALS['is_header_sent'])) {
*/
$GLOBALS['is_header_sent'] = TRUE;
}
?>
?>