- Remove old qTip function

- Rename class used by PMA_tooltip()
This commit is contained in:
Marc Delisle 2013-01-07 12:51:43 -05:00
parent c97c8fe7df
commit 8df91626c8
3 changed files with 7 additions and 56 deletions

View File

@ -3457,48 +3457,6 @@ AJAX.registerTeardown('functions.js', function() {
};
})(jQuery);
/**
* Create default PMA tooltip for the element specified. The default appearance
* can be overriden by specifying optional "options" parameter (see qTip options).
*/
function PMA_createqTip($elements, content, options)
{
if ($('#no_hint').length > 0) {
return;
}
var o = {
content: content,
style: {
classes: {
tooltip: 'normalqTip',
content: 'normalqTipContent'
},
name: 'dark'
},
position: {
target: 'mouse',
corner: { target: 'rightMiddle', tooltip: 'leftMiddle' },
adjust: { x: 10, y: 20 }
},
show: {
delay: 0,
effect: {
type: 'grow',
length: 150
}
},
hide: {
effect: {
type: 'grow',
length: 200
}
}
};
$elements.qtip($.extend(true, o, options));
}
/**
* Create a jQuery UI tooltip
*
@ -3518,8 +3476,7 @@ function PMA_tooltip($elements, item, myContent, additionalOptions)
var defaultOptions = {
content: myContent,
items: item,
//@todo: when PMA_createqTip() is gone, rename this class
tooltipClass: "normalqTip",
tooltipClass: "tooltip",
track: true,
show: false,
hide: false

View File

@ -2177,7 +2177,7 @@ fieldset .disabled-field td {
width: 10px;
}
.normalqTip {
.tooltip {
background: #333 !important;
opacity: .8 !important;
border: 1px solid #000 !important;
@ -2187,17 +2187,14 @@ fieldset .disabled-field td {
text-shadow: -1px -1px #000 !important;
font-size: .8em !important;
font-weight: bold !important;
padding: 1px 3px !important;
}
.normalqTip * {
.tooltip * {
background: none !important;
color: #FFF !important;
}
.normalqTipContent {
padding: 1px 3px !important;
}
.data_full_width {
width: 100%;

View File

@ -2639,7 +2639,7 @@ fieldset .disabled-field td {
width: 10px;
}
.normalqTip {
.tooltip {
background: #333 !important;
opacity: .8 !important;
border: 1px solid #000 !important;
@ -2649,17 +2649,14 @@ fieldset .disabled-field td {
text-shadow: -1px -1px #000 !important;
font-size: .8em !important;
font-weight: bold !important;
padding: 1px 3px !important;
}
.normalqTip * {
.tooltip * {
background: none !important;
color: #FFF !important;
}
.normalqTipContent {
padding: 1px 3px !important;
}
.cDrop {
left: 0;
position: absolute;