Skip to content

Commit

Permalink
[BUGFIX] Remove tooltip over delete button when it's clicked
Browse files Browse the repository at this point in the history
The tooltip has to be removed at that point, because as soon as any data
is deleted the row disappears and it's not possible to trigger the
mouseout event manually.

Resolves: #81856
Releases: master, 8.7
Change-Id: I2f7388b6a278de9ba19e81ec20ed3ae0052b1698
Reviewed-on: https://review.typo3.org/58475
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Andreas Fernandez <a.fernandez@scripting-base.de>
Tested-by: Andreas Fernandez <a.fernandez@scripting-base.de>
  • Loading branch information
nhovratov authored and andreaskienast committed Sep 29, 2018
1 parent 76c2510 commit c50894c
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ define(['jquery',
$(document).on('click', AjaxDataHandler.identifier.delete, function(evt) {
evt.preventDefault();
var $anchorElement = $(this);
$anchorElement.tooltip('hide');
var $modal = Modal.confirm($anchorElement.data('title'), $anchorElement.data('message'), Severity.warning, [
{
text: $(this).data('button-close-text') || TYPO3.lang['button.cancel'] || 'Cancel',
Expand Down

0 comments on commit c50894c

Please sign in to comment.