From 992cff7db77547275138242017f4e391c3d62eb0 Mon Sep 17 00:00:00 2001 From: Michael Keck Date: Thu, 20 Jan 2005 17:37:50 +0000 Subject: [PATCH] removed wrong typos in tooltip.js / add new class "disabled" (required by rabus) --- ChangeLog | 5 ++++ libraries/tooltip.js | 26 +++++++++---------- .../darkblue_orange/css/theme_right.css.php | 20 +++++++++++--- themes/original/css/theme_right.css.php | 16 +++++++++++- 4 files changed, 49 insertions(+), 18 deletions(-) diff --git a/ChangeLog b/ChangeLog index 6a4691d93..added379a 100755 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,11 @@ phpMyAdmin - Changelog $Id$ $Source$ +2005-01-20 Michael Keck + * themes/.../theme_right.css.php: new class for disabled (not available) + text / values / messages + * libraries/tooltip.js: removed wrong typos (sorry) + 2005-01-20 Michael Keck * new js-library: tooltip.js for tooltips (hints) * libraries/common.lib.php: img tag modified for mouseover / mouseout diff --git a/libraries/tooltip.js b/libraries/tooltip.js index 24356d21f..f66c0ad28 100644 --- a/libraries/tooltip.js +++ b/libraries/tooltip.js @@ -2,7 +2,7 @@ /** - * Displays the Tooltips / tooltips, if we have some + * Displays the Tooltips (hints), if we have some * 2005-01-20 added by Michael Keck (mkkeck) */ @@ -10,12 +10,12 @@ var ttXpos = 0, ttYpos = 0; var ttXadd = 10, ttYadd = -10; var ttDisplay = 0, ttHoldIt = 0; -// Check if browser does support divContaiber / Tooltips +// Check if browser does support dynamic content and dhtml var ttNS4 = (document.layers) ? 1 : 0; // the old Netscape 4 var ttIE4 = (document.all) ? 1 : 0; // browser wich uses document.all var ttDOM = (document.getElementById) ? 1 : 0; // DOM-compatible browsers -if (ttDOM) { // if DOM-compatible, the the others to false - ttNS4 = 0; +if (ttDOM) { // if DOM-compatible, set the others to false + ttNS4 = 0; ttIE4 = 0; } @@ -36,14 +36,13 @@ if ( (ttDOM) || (ttIE4) || (ttNS4) ) { } /** - * init the Tooltip and write the text into it + * init the tooltip and write the text into it */ function textTooltip(theText) { - //show(myTooltipContainer); - if (ttDOM || ttIE4) { // document.getEelementById || document.all - myTooltipContainer.innerHTML = ""; // we should empty it first + if (ttDOM || ttIE4) { // document.getEelementById || document.all + myTooltipContainer.innerHTML = ""; // we should empty it first myTooltipContainer.innerHTML = theText; - } else if (ttNS4) { // document.layers + } else if (ttNS4) { // document.layers var layerNS4 = myTooltipContainer.document; layerNS4.write(theText); layerNS4.close(); @@ -95,7 +94,7 @@ function showTooltip(stat) { } } /** - * show / hide the Tooltip + * hold it, if we create or move the mouse over the tooltip */ function holdTooltip() { ttHoldIt = 1; @@ -104,7 +103,7 @@ function holdTooltip() { } /** - * move the Tooltip to mouse position + * move the tooltip to mouse position */ function moveTooltip(posX, posY) { if (ttDOM || ttIE4) { @@ -117,7 +116,7 @@ function moveTooltip(posX, posY) { } /** - * build the Tooltip + * build the tooltip */ function pmaTooltip(theText) { textTooltip(theText); @@ -158,5 +157,4 @@ function mouseMove(e) { ttXpos = ttXpos - (divWidth + (ttXadd * 2)); if ((ttYpos + divHeight) > docY) ttYpos = ttYpos - (divHeight + (ttYadd * 2)); - -} \ No newline at end of file +} diff --git a/themes/darkblue_orange/css/theme_right.css.php b/themes/darkblue_orange/css/theme_right.css.php index 37ebfeb11..3c24697b6 100644 --- a/themes/darkblue_orange/css/theme_right.css.php +++ b/themes/darkblue_orange/css/theme_right.css.php @@ -288,8 +288,6 @@ div.error div.head { .syntax_quote {white-space: pre;} .syntax_quote_backtick {} -/* some new styles added 20047-05-05 by Michael Keck (mkkeck) */ - /* tables */ .tblError { border: 1px solid #cc0000; @@ -490,6 +488,22 @@ img, input, select, button { vertical-align: middle; } +/* disabled text */ +.disabled, .disabled a:link, disabled a:active, .disabled a:visited { + font-family: Verdana, Arial, Helvetica, sans-serif; + font-size: 10px; + color: #666666; +} +.disabled a:hover { + font-family: Verdana, Arial, Helvetica, sans-serif; + font-size: 10px; + color: #666666; + text-decoration: none; +} +td.disabled { + background-color: #cccccc; +} + /* some styles for IDs: */ #buttonNo{ @@ -539,4 +553,4 @@ img, input, select, button { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; } -/* end of some new styles added 20047-05-05 by Michael Keck (mkkeck) */ + diff --git a/themes/original/css/theme_right.css.php b/themes/original/css/theme_right.css.php index 12ecb61d6..f4aac3ead 100644 --- a/themes/original/css/theme_right.css.php +++ b/themes/original/css/theme_right.css.php @@ -275,6 +275,20 @@ img, input, select, button { width: 20px; height: 16px; } + +/* disabled text */ +.disabled, .disabled a:link, disabled a:active, .disabled a:visited { + font-family: ; + font-size: ; + color: #666666; +} +.disabled a:hover { + text-decoration: none; +} +td.disabled { + background-color: #cccccc; +} + #textSQLDUMP { width: 95%; height: 95%; @@ -295,4 +309,4 @@ img, input, select, button { padding: 5px; font-family: ; font-size: ; -} \ No newline at end of file +}