Fixed bug where non-footnote notices were being hidden; footnotes given their own div classes

This commit is contained in:
lorilee
2010-07-16 00:09:58 -07:00
parent b63b7552d0
commit 7b46075360
3 changed files with 11 additions and 5 deletions

View File

@@ -217,7 +217,10 @@ function mouseMove(e) {
$(document).ready(function() {
// Hide the footnotes from the footer (which are displayed for
// JavaScript-disabled browsers) since the tooltip is sufficient
$(".notice").hide();
$(".footnotes").hide();
// The border and padding must be removed otherwise a thin yellow box remains visible
$(".footnotes").css("border", "none");
$(".footnotes").css("padding", "0px");
// Replace the superscripts with the help icon
$("sup[class='footnotemarker']").remove();
$("img[class='footnotemarker']").show();

View File

@@ -68,7 +68,7 @@ if ($GLOBALS['error_handler']->hasDisplayErrors()) {
}
if (count($GLOBALS['footnotes'])) {
echo '<div class="notice">';
echo '<div class="footnotes">';
foreach ($GLOBALS['footnotes'] as $footnote) {
echo '<span id="footnote_' . $footnote['nr'] . '"><sup>'
. $footnote['nr'] . '</sup> ' . $footnote['note'] . '</span><br />';

View File

@@ -387,7 +387,8 @@ div.error h1 {
div.success,
div.notice,
div.warning,
div.error {
div.error,
div.footnotes {
margin: 0.3em 0 0 0;
border: 2px solid;
<?php if ($GLOBALS['cfg']['ErrorIconic']) { ?>
@@ -419,12 +420,13 @@ div.success {
border-color: #00FF00;
}
.notice {
.notice, .footnotes {
color: #000000;
background-color: #FFFFDD;
}
h1.notice,
div.notice {
div.notice,
div.footnotes {
border-color: #FFD700;
<?php if ($GLOBALS['cfg']['ErrorIconic']) { ?>
background-image: url(<?php echo $_SESSION['PMA_Theme']->getImgPath(); ?>s_notice.png);
@@ -488,6 +490,7 @@ fieldset.confirmation legend {
<?php } ?>
<?php } ?>
}
/* end messageboxes */