From: Matthias Schmidt Date: Sat, 19 Mar 2016 12:39:48 +0000 (+0100) Subject: Fix clipboard without markAll element (part 2) X-Git-Tag: 3.0.0_Beta_1~2006 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=45c72be326d703f325b93bdf3dd38d05b87d5458;p=GitHub%2FWoltLab%2FWCF.git Fix clipboard without markAll element (part 2) --- diff --git a/wcfsetup/install/files/js/WoltLab/WCF/Controller/Clipboard.js b/wcfsetup/install/files/js/WoltLab/WCF/Controller/Clipboard.js index c4de48c035..c75ca83018 100644 --- a/wcfsetup/install/files/js/WoltLab/WCF/Controller/Clipboard.js +++ b/wcfsetup/install/files/js/WoltLab/WCF/Controller/Clipboard.js @@ -393,7 +393,9 @@ define( clipboardObjects[0].classList.remove('jsMarked'); } - containerData.markAll.checked = false; + if (containerData.markAll !== null) { + containerData.markAll.checked = false; + } for (var i = 0, length = containerData.checkboxes.length; i < length; i++) { containerData.checkboxes[i].checked = false; }