Continue converting to jQuery UI tooltip
This commit is contained in:
parent
5e8f6efd0b
commit
3206db75e7
@ -1531,23 +1531,23 @@ function PMA_ajaxShowMessage(message, timeout)
|
||||
if (dismissable) {
|
||||
$retval.addClass('dismissable').css('cursor', 'pointer');
|
||||
/**
|
||||
* @var qOpts Options for "Dismiss notification" tooltip
|
||||
* @var tooltipOptions Options for "Dismiss notification" tooltip
|
||||
* to remove any animation when showing and hiding
|
||||
*/
|
||||
var qOpts = {
|
||||
show: {
|
||||
effect: { length: 0 },
|
||||
delay: 0
|
||||
},
|
||||
hide: {
|
||||
effect: { length: 0 },
|
||||
delay: 0
|
||||
}
|
||||
var tooltipOptions = {
|
||||
show: false,
|
||||
hide: false
|
||||
};
|
||||
/**
|
||||
* Add a tooltip to the notification to let the user know that (s)he
|
||||
* can dismiss the ajax notification by clicking on it.
|
||||
*/
|
||||
PMA_createqTip($retval, PMA_messages['strDismiss'], qOpts);
|
||||
PMA_tooltip(
|
||||
$retval,
|
||||
'span',
|
||||
PMA_messages['strDismiss'],
|
||||
tooltipOptions
|
||||
);
|
||||
}
|
||||
|
||||
return $retval;
|
||||
|
||||
@ -31,8 +31,9 @@ AJAX.registerOnload('server_status_queries.js', function() {
|
||||
}
|
||||
|
||||
/*** Table sort tooltip ***/
|
||||
PMA_createqTip(
|
||||
$('table.sortable').children('thead').children('tr').has('th'),
|
||||
PMA_tooltip(
|
||||
$('table.sortable>thead>tr:first').find('th'),
|
||||
'th',
|
||||
PMA_messages['strSortHint']
|
||||
);
|
||||
initTableSorter('statustabs_queries');
|
||||
|
||||
@ -17,7 +17,11 @@ AJAX.registerTeardown('server_status_variables.js', function() {
|
||||
|
||||
AJAX.registerOnload('server_status_variables.js', function() {
|
||||
/*** Table sort tooltip ***/
|
||||
PMA_tooltip($('table.sortable>thead>tr:first').find('th'), 'th', PMA_messages['strSortHint']);
|
||||
PMA_tooltip(
|
||||
$('table.sortable>thead>tr:first').find('th'),
|
||||
'th',
|
||||
PMA_messages['strSortHint']
|
||||
);
|
||||
initTableSorter('statustabs_allvars');
|
||||
|
||||
// Filters for status variables
|
||||
|
||||
@ -374,7 +374,7 @@ class PMA_Header
|
||||
$retval .= PMA_userprefsAutoloadGetHeader();
|
||||
}
|
||||
// pass configuration for hint tooltip display
|
||||
// (to be used by PMA_createqTip in js/functions.js)
|
||||
// (to be used by PMA_tooltip() in js/functions.js)
|
||||
if (! $GLOBALS['cfg']['ShowHint']) {
|
||||
$retval .= '<span id="no_hint" class="hide"></span>';
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user