[BUGFIX] Fix of Close-button in flash messages 64/19464/2
authorJost Baron <jost.baron@gmx.de>
Sun, 24 Mar 2013 22:12:13 +0000 (23:12 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Sun, 31 Mar 2013 17:02:12 +0000 (19:02 +0200)
The close button did not work because hide() was called on
a HTMLElement instead of an Ext.Element.

Fixes: #46373
Related: #31368
Releases: 6.1, 6.0, 4.7
Change-Id: I70c65a82683ece39de4ed043a916b0521aabafa1
Reviewed-on: https://review.typo3.org/19464
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
t3lib/js/extjs/ux/flashmessages.js

index 490c2b1..62f20f2 100644 (file)
@@ -86,7 +86,7 @@ TYPO3.Flashmessage = function() {
                        messageContainer.alignTo(document, 't-t');
                        box.child('.t3-icon-actions-message-close').on('click', function (e, t, o) {
                                var node;
-                               node = Ext.get(t).findParent('div.typo3-message');
+                               node = new Ext.Element(Ext.get(t).findParent('div.typo3-message'));
                                node.hide();
                                Ext.removeNode(node.dom);
                        }, box);