PMA_tooltip was used before it was defined

Signed-off-by: Marc Delisle <marc@infomarc.info>
This commit is contained in:
Marc Delisle 2014-07-30 13:39:12 -04:00
parent ebb3ebea76
commit caee49655f

View File

@ -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.
*/