diff --git a/js/ajax.js b/js/ajax.js index d7110ae8a6..6a59d78e01 100644 --- a/js/ajax.js +++ b/js/ajax.js @@ -635,6 +635,7 @@ AJAX.cache = { // TODO: don't send it in the response .children().first().remove(); $('#topmenu').menuResizer(PMA_mainMenuResizerCallback); + PMA_createqTip($("#serverinfo"), 'x' + PMA_messages['strScrollTopFeatureHint']); } } }; diff --git a/js/functions.js b/js/functions.js index 7f046177a1..eb8ac713a6 100644 --- a/js/functions.js +++ b/js/functions.js @@ -3673,12 +3673,18 @@ $(function () { * Scrolls the page to the top if clicking the serverinfo bar */ $(function () { + var $serverinfo = $("#serverinfo"); $(document).delegate("#serverinfo", "click", function () { $('html, body').animate({scrollTop: 0}, 'fast'); }); - $(document).delegate("#serverinfo > *", "click", function (e) { + $(document).delegate("#serverinfo > *", "click mouseover", function (e) { e.stopPropagation(); + $serverinfo.qtip("hide"); }); + $(document).delegate("#serverinfo > *", "mouseout", function () { + $serverinfo.qtip("show"); + }); + PMA_createqTip($("#serverinfo"), PMA_messages['strScrollTopFeatureHint']); }); /** diff --git a/js/messages.php b/js/messages.php index 8c4f2fbb70..05d4b081a4 100644 --- a/js/messages.php +++ b/js/messages.php @@ -379,6 +379,7 @@ $js_messages['strChangePassword'] = __('Change Password'); /* navigation tabs */ $js_messages['strMore'] = __('More'); +$js_messages['strScrollTopFeatureHint'] = __('You may click this navigation bar to scroll the page to the top.'); /* navigation panel */ $js_messages['strShowPanel'] = __('Show Panel');