removed wrong typos in tooltip.js / add new class "disabled" (required by rabus)

This commit is contained in:
Michael Keck
2005-01-20 17:37:50 +00:00
parent cbce99b669
commit 992cff7db7
4 changed files with 49 additions and 18 deletions

View File

@@ -5,6 +5,11 @@ phpMyAdmin - Changelog
$Id$
$Source$
2005-01-20 Michael Keck <mkkeck@users.sourceforge.net>
* 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 <mkkeck@users.sourceforge.net>
* new js-library: tooltip.js for tooltips (hints)
* libraries/common.lib.php: img tag modified for mouseover / mouseout

View File

@@ -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));
}

View File

@@ -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;
}
<?php if (isset($js_isDOM) && $js_isDOM != '0') { ?>
/* 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) */

View File

@@ -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: <?php echo $right_font_family; ?>;
font-size: <?php echo $font_size; ?>;
color: #666666;
}
.disabled a:hover {
text-decoration: none;
}
td.disabled {
background-color: #cccccc;
}
#textSQLDUMP {
width: 95%;
height: 95%;