From 970a945f73ce9379d7bd3275b1d3bf252e7637c8 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Sun, 13 Nov 2016 14:31:44 +0100 Subject: [PATCH] Fix legacy support of WCF.Clipboard --- wcfsetup/install/files/js/WCF.js | 5 +++++ 1 file changed, 5 insertions(+) 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); } -- 2.20.1