Fix clipboard without markAll element (part 2)
authorMatthias Schmidt <gravatronics@live.com>
Sat, 19 Mar 2016 12:39:48 +0000 (13:39 +0100)
committerMatthias Schmidt <gravatronics@live.com>
Sat, 19 Mar 2016 12:39:48 +0000 (13:39 +0100)
wcfsetup/install/files/js/WoltLab/WCF/Controller/Clipboard.js

index c4de48c035e8232d685b7860d6bc41cfb83cf31e..c75ca83018491a8a28722a081d094dd7bb37ec06 100644 (file)
@@ -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;
                                                }