From: Matthias Schmidt Date: Mon, 22 Aug 2016 12:19:43 +0000 (+0200) Subject: Fix dismissing notices X-Git-Tag: 3.0.0_Beta_1~586 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d02320507771643a40f0974d82f68836fcbcb873;p=GitHub%2FWoltLab%2FWCF.git Fix dismissing notices --- diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Controller/Notice/Dismiss.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Controller/Notice/Dismiss.js index cef21fb43a..97e98cf839 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Controller/Notice/Dismiss.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Controller/Notice/Dismiss.js @@ -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); } }); }