From: Alexander Ebert Date: Thu, 14 Jul 2016 15:00:28 +0000 (+0200) Subject: Clipboard now marks 'mark all' as active X-Git-Tag: 3.0.0_Beta_1~1143 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3e61a931eb143d836182d87fe6bba60829e516e2;p=GitHub%2FWoltLab%2FWCF.git Clipboard now marks 'mark all' as active --- 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'); + } } } };