removed wrong typos in tooltip.js / add new class "disabled" (required by rabus)
This commit is contained in:
@@ -5,6 +5,11 @@ phpMyAdmin - Changelog
|
|||||||
$Id$
|
$Id$
|
||||||
$Source$
|
$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>
|
2005-01-20 Michael Keck <mkkeck@users.sourceforge.net>
|
||||||
* new js-library: tooltip.js for tooltips (hints)
|
* new js-library: tooltip.js for tooltips (hints)
|
||||||
* libraries/common.lib.php: img tag modified for mouseover / mouseout
|
* libraries/common.lib.php: img tag modified for mouseover / mouseout
|
||||||
|
@@ -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)
|
* 2005-01-20 added by Michael Keck (mkkeck)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@@ -10,12 +10,12 @@
|
|||||||
var ttXpos = 0, ttYpos = 0;
|
var ttXpos = 0, ttYpos = 0;
|
||||||
var ttXadd = 10, ttYadd = -10;
|
var ttXadd = 10, ttYadd = -10;
|
||||||
var ttDisplay = 0, ttHoldIt = 0;
|
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 ttNS4 = (document.layers) ? 1 : 0; // the old Netscape 4
|
||||||
var ttIE4 = (document.all) ? 1 : 0; // browser wich uses document.all
|
var ttIE4 = (document.all) ? 1 : 0; // browser wich uses document.all
|
||||||
var ttDOM = (document.getElementById) ? 1 : 0; // DOM-compatible browsers
|
var ttDOM = (document.getElementById) ? 1 : 0; // DOM-compatible browsers
|
||||||
if (ttDOM) { // if DOM-compatible, the the others to false
|
if (ttDOM) { // if DOM-compatible, set the others to false
|
||||||
ttNS4 = 0;
|
ttNS4 = 0;
|
||||||
ttIE4 = 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) {
|
function textTooltip(theText) {
|
||||||
//show(myTooltipContainer);
|
if (ttDOM || ttIE4) { // document.getEelementById || document.all
|
||||||
if (ttDOM || ttIE4) { // document.getEelementById || document.all
|
myTooltipContainer.innerHTML = ""; // we should empty it first
|
||||||
myTooltipContainer.innerHTML = ""; // we should empty it first
|
|
||||||
myTooltipContainer.innerHTML = theText;
|
myTooltipContainer.innerHTML = theText;
|
||||||
} else if (ttNS4) { // document.layers
|
} else if (ttNS4) { // document.layers
|
||||||
var layerNS4 = myTooltipContainer.document;
|
var layerNS4 = myTooltipContainer.document;
|
||||||
layerNS4.write(theText);
|
layerNS4.write(theText);
|
||||||
layerNS4.close();
|
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() {
|
function holdTooltip() {
|
||||||
ttHoldIt = 1;
|
ttHoldIt = 1;
|
||||||
@@ -104,7 +103,7 @@ function holdTooltip() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* move the Tooltip to mouse position
|
* move the tooltip to mouse position
|
||||||
*/
|
*/
|
||||||
function moveTooltip(posX, posY) {
|
function moveTooltip(posX, posY) {
|
||||||
if (ttDOM || ttIE4) {
|
if (ttDOM || ttIE4) {
|
||||||
@@ -117,7 +116,7 @@ function moveTooltip(posX, posY) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* build the Tooltip
|
* build the tooltip
|
||||||
*/
|
*/
|
||||||
function pmaTooltip(theText) {
|
function pmaTooltip(theText) {
|
||||||
textTooltip(theText);
|
textTooltip(theText);
|
||||||
@@ -158,5 +157,4 @@ function mouseMove(e) {
|
|||||||
ttXpos = ttXpos - (divWidth + (ttXadd * 2));
|
ttXpos = ttXpos - (divWidth + (ttXadd * 2));
|
||||||
if ((ttYpos + divHeight) > docY)
|
if ((ttYpos + divHeight) > docY)
|
||||||
ttYpos = ttYpos - (divHeight + (ttYadd * 2));
|
ttYpos = ttYpos - (divHeight + (ttYadd * 2));
|
||||||
|
}
|
||||||
}
|
|
||||||
|
@@ -288,8 +288,6 @@ div.error div.head {
|
|||||||
.syntax_quote {white-space: pre;}
|
.syntax_quote {white-space: pre;}
|
||||||
.syntax_quote_backtick {}
|
.syntax_quote_backtick {}
|
||||||
|
|
||||||
/* some new styles added 20047-05-05 by Michael Keck (mkkeck) */
|
|
||||||
|
|
||||||
/* tables */
|
/* tables */
|
||||||
.tblError {
|
.tblError {
|
||||||
border: 1px solid #cc0000;
|
border: 1px solid #cc0000;
|
||||||
@@ -490,6 +488,22 @@ img, input, select, button {
|
|||||||
vertical-align: middle;
|
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') { ?>
|
<?php if (isset($js_isDOM) && $js_isDOM != '0') { ?>
|
||||||
/* some styles for IDs: */
|
/* some styles for IDs: */
|
||||||
#buttonNo{
|
#buttonNo{
|
||||||
@@ -539,4 +553,4 @@ img, input, select, button {
|
|||||||
font-family: Verdana, Arial, Helvetica, sans-serif;
|
font-family: Verdana, Arial, Helvetica, sans-serif;
|
||||||
font-size: 10px;
|
font-size: 10px;
|
||||||
}
|
}
|
||||||
/* end of some new styles added 20047-05-05 by Michael Keck (mkkeck) */
|
|
||||||
|
@@ -275,6 +275,20 @@ img, input, select, button {
|
|||||||
width: 20px;
|
width: 20px;
|
||||||
height: 16px;
|
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 {
|
#textSQLDUMP {
|
||||||
width: 95%;
|
width: 95%;
|
||||||
height: 95%;
|
height: 95%;
|
||||||
@@ -295,4 +309,4 @@ img, input, select, button {
|
|||||||
padding: 5px;
|
padding: 5px;
|
||||||
font-family: <?php echo $right_font_family; ?>;
|
font-family: <?php echo $right_font_family; ?>;
|
||||||
font-size: <?php echo $font_size; ?>;
|
font-size: <?php echo $font_size; ?>;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user