From caee49655f0e0f012cef1f19d99c9f1bd209aa2e Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Wed, 30 Jul 2014 13:39:12 -0400 Subject: [PATCH] PMA_tooltip was used before it was defined Signed-off-by: Marc Delisle --- js/functions.js | 56 ++++++++++++++++++++++++------------------------- 1 file changed, 28 insertions(+), 28 deletions(-) diff --git a/js/functions.js b/js/functions.js index 8dd9473de8..e6c4df7f94 100644 --- a/js/functions.js +++ b/js/functions.js @@ -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. */