From 45c72be326d703f325b93bdf3dd38d05b87d5458 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Sat, 19 Mar 2016 13:39:48 +0100 Subject: [PATCH] Fix clipboard without markAll element (part 2) --- wcfsetup/install/files/js/WoltLab/WCF/Controller/Clipboard.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; } -- 2.20.1