From 3e61a931eb143d836182d87fe6bba60829e516e2 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Thu, 14 Jul 2016 17:00:28 +0200 Subject: [PATCH] Clipboard now marks 'mark all' as active --- .../files/js/WoltLab/WCF/Controller/Clipboard.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/wcfsetup/install/files/js/WoltLab/WCF/Controller/Clipboard.js b/wcfsetup/install/files/js/WoltLab/WCF/Controller/Clipboard.js index 290ae7a13e..41d2073727 100644 --- a/wcfsetup/install/files/js/WoltLab/WCF/Controller/Clipboard.js +++ b/wcfsetup/install/files/js/WoltLab/WCF/Controller/Clipboard.js @@ -537,6 +537,18 @@ define( if (data.markAll !== null) { data.markAll.checked = markAll; + + var parent = data.markAll; + while (parent = parent.parentNode) { + if (parent.classList.contains('columnMark')) { + parent = parent.parentNode; + break; + } + } + + if (parent) { + parent.classList[(markAll ? 'add' : 'remove')]('jsMarked'); + } } } }; -- 2.20.1