[BUGFIX] Remove tooltip over delete button when it's clicked 75/58475/2
authorNikita Hovratov <nikita.h@live.de>
Sat, 29 Sep 2018 20:05:01 +0000 (22:05 +0200)
committerAndreas Fernandez <a.fernandez@scripting-base.de>
Sat, 29 Sep 2018 20:19:23 +0000 (22:19 +0200)
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>
typo3/sysext/backend/Resources/Public/JavaScript/AjaxDataHandler.js

index e0b0d34..a30c511 100644 (file)
@@ -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',