diff options
Diffstat (limited to 'plugins/CoreHome/javascripts/dataTable.js')
-rw-r--r-- | plugins/CoreHome/javascripts/dataTable.js | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/plugins/CoreHome/javascripts/dataTable.js b/plugins/CoreHome/javascripts/dataTable.js index 137c832402..d6bd212afe 100644 --- a/plugins/CoreHome/javascripts/dataTable.js +++ b/plugins/CoreHome/javascripts/dataTable.js @@ -1974,6 +1974,24 @@ $.extend(DataTable.prototype, UIControl.prototype, { items: 'a', content: '<h3>'+action.dataTableIconTooltip[0]+'</h3>'+action.dataTableIconTooltip[1], tooltipClass: 'rowActionTooltip', + // ensure the tooltips of parent elements are hidden when the action tooltip is shown + // otherwise it can happen that tooltips for subtable rows are shown as well. + open: function() { + var tooltip = $(this).parents().filter(function() { + return jQuery.hasData(this) && $(this).data('ui-tooltip'); + }).tooltip('instance'); + if (tooltip) { + tooltip.disable(); + } + }, + close: function() { + var tooltip = $(this).parents().filter(function() { + return jQuery.hasData(this) && $(this).data('ui-tooltip'); + }).tooltip('instance'); + if (tooltip) { + tooltip.enable(); + } + }, show: false, hide: false }); |