TT#55953 Prevent hiding buttons on ajax search

When clicking into a datatables search field, then moving the mouse over
a result row of a different datatable, then start typing in the search
field, a hover() seems to trigger a handlerOut event, making the buttons
to disappear.

Using two separate onmouseover() and onmouseout() events instead of the
hover() seems to fix this.

Change-Id: I5c3e43f226faa3455db514ada3543120d5313e76
(cherry picked from commit 972eb6e50c)
(cherry picked from commit 5dd9c25ed3)
(cherry picked from commit 3f960874d1)
changes/38/29638/1
Andreas Granig 6 years ago committed by Alexander Lutay
parent f8983f4101
commit ba637de0ff

@ -174,9 +174,11 @@ $(document).ready(function() {
[% END -%]
"fnDrawCallback": function( oSettings ) {
$('.sw_actions').css('visibility','hidden');
$('.sw_action_row').hover(
$('.sw_action_row').mouseover(
function() { $(this).find('.sw_actions').css('visibility','visible'); },
function() { $(this).find('.sw_actions').css('visibility','hidden'); }
);
$('.sw_action_row').mouseout(
function() { $(this).find('.sw_actions').css('visibility','hidden'); },
);
if ($('.sw_actions').find("[rel=tooltip]").length) {
$('.sw_actions').find("[rel=tooltip]").tooltip();

Loading…
Cancel
Save