PMA_tooltip was used before it was defined
Signed-off-by: Marc Delisle <marc@infomarc.info>
This commit is contained in:
parent
ebb3ebea76
commit
caee49655f
@ -77,6 +77,34 @@ $.ajaxPrefilter(function (options, originalOptions, jqXHR) {
|
||||
}
|
||||
});
|
||||
|
||||
/**
|
||||
* Create a jQuery UI tooltip
|
||||
*
|
||||
* @param $elements jQuery object representing the elements
|
||||
* @param item the item
|
||||
* (see http://api.jqueryui.com/tooltip/#option-items)
|
||||
* @param myContent content of the tooltip
|
||||
* @param additionalOptions to override the default options
|
||||
*
|
||||
*/
|
||||
function PMA_tooltip($elements, item, myContent, additionalOptions)
|
||||
{
|
||||
if ($('#no_hint').length > 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
var defaultOptions = {
|
||||
content: myContent,
|
||||
items: item,
|
||||
tooltipClass: "tooltip",
|
||||
track: true,
|
||||
show: false,
|
||||
hide: false
|
||||
};
|
||||
|
||||
$elements.tooltip($.extend(true, defaultOptions, additionalOptions));
|
||||
}
|
||||
|
||||
/**
|
||||
* HTML escaping
|
||||
*/
|
||||
@ -3985,34 +4013,6 @@ AJAX.registerTeardown('functions.js', function () {
|
||||
};
|
||||
})(jQuery);
|
||||
|
||||
/**
|
||||
* Create a jQuery UI tooltip
|
||||
*
|
||||
* @param $elements jQuery object representing the elements
|
||||
* @param item the item
|
||||
* (see http://api.jqueryui.com/tooltip/#option-items)
|
||||
* @param myContent content of the tooltip
|
||||
* @param additionalOptions to override the default options
|
||||
*
|
||||
*/
|
||||
function PMA_tooltip($elements, item, myContent, additionalOptions)
|
||||
{
|
||||
if ($('#no_hint').length > 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
var defaultOptions = {
|
||||
content: myContent,
|
||||
items: item,
|
||||
tooltipClass: "tooltip",
|
||||
track: true,
|
||||
show: false,
|
||||
hide: false
|
||||
};
|
||||
|
||||
$elements.tooltip($.extend(true, defaultOptions, additionalOptions));
|
||||
}
|
||||
|
||||
/**
|
||||
* Return value of a cell in a table.
|
||||
*/
|
||||
|
||||
Loading…
Reference in New Issue
Block a user