Skip to content
Snippets Groups Projects
Commit c42de43d authored by Nikita Hovratov's avatar Nikita Hovratov Committed by Christian Kuhn
Browse files

[BUGFIX] Refresh iconElement after its content has been replaced

The variable iconElement refers now correctly to the original jQuery
object and is really reverted to the old class as the comment implies.

Resolves: #82624
Releases: master, 8.7
Change-Id: I13615bbee6d5148fe940bac49b72c2766c0a1de7
Reviewed-on: https://review.typo3.org/53258


Tested-by: default avatarTYPO3com <no-reply@typo3.com>
Reviewed-by: default avatarJoerg Boesche <typo3@joergboesche.de>
Reviewed-by: default avatarAndreas Fernandez <typo3@scripting-base.de>
Tested-by: default avatarAndreas Fernandez <typo3@scripting-base.de>
Reviewed-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Tested-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
parent 73b5e17d
Branches
Tags
No related merge requests found
......@@ -179,6 +179,7 @@ define(['jquery',
AjaxDataHandler._call(params).done(function(result) {
// revert to the old class
Icons.getIcon('actions-edit-delete', Icons.sizes.small).done(function(icon) {
$iconElement = $anchorElement.find(AjaxDataHandler.identifier.icon);
$iconElement.replaceWith(icon);
});
// print messages on errors
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment