From: Matthias Schmidt Date: Sun, 13 Nov 2016 13:31:44 +0000 (+0100) Subject: Fix legacy support of WCF.Clipboard X-Git-Tag: 3.0.0_Beta_5~61 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=970a945f73ce9379d7bd3275b1d3bf252e7637c8;p=GitHub%2FWoltLab%2FWCF.git Fix legacy support of WCF.Clipboard --- diff --git a/wcfsetup/install/files/js/WCF.js b/wcfsetup/install/files/js/WCF.js index a21645a343..8d370fd93a 100755 --- a/wcfsetup/install/files/js/WCF.js +++ b/wcfsetup/install/files/js/WCF.js @@ -1323,6 +1323,11 @@ WCF.Clipboard = { if (actionObjects.hasOwnProperty(type)) { (function (type) { EventHandler.add('com.woltlab.wcf.clipboard', type, function (data) { + // only consider events if the action has been executed + if (data.responseData === null) { + return; + } + if (actionObjects[type].hasOwnProperty(data.responseData.actionName)) { actionObjects[type][data.responseData.actionName].triggerEffect(data.responseData.objectIDs); }