Fix dismissing notices
authorMatthias Schmidt <gravatronics@live.com>
Mon, 22 Aug 2016 12:19:43 +0000 (14:19 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Mon, 22 Aug 2016 12:19:43 +0000 (14:19 +0200)
wcfsetup/install/files/js/WoltLabSuite/Core/Controller/Notice/Dismiss.js

index cef21fb43aa8be20c0d2a60debb19e11a0eebfe9..97e98cf839d271f0e23f3e74f52eb5b2522a1d67 100644 (file)
@@ -40,13 +40,7 @@ define(['Ajax'], function(Ajax) {
                                        objectIDs: [ elData(button, 'object-id') ]
                                },
                                success: function() {
-                                       var parent = button.parentNode;
-                                       
-                                       parent.addEventListener('transitionend', function() {
-                                               elRemove(parent);
-                                       });
-                                       
-                                       parent.classList.remove('active');
+                                       elRemove(button.parentNode);
                                }
                        });
                }