From 92b68fe77085121a22ab735569c288c3d4da7318 Mon Sep 17 00:00:00 2001 From: Liana Husikyan Date: Mon, 10 Dec 2018 21:32:50 +0100 Subject: [PATCH] Update staticAnalysisView.js --- src/app/staticanalysis/staticAnalysisView.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/app/staticanalysis/staticAnalysisView.js b/src/app/staticanalysis/staticAnalysisView.js index 38c464d207..70be1cf655 100644 --- a/src/app/staticanalysis/staticAnalysisView.js +++ b/src/app/staticanalysis/staticAnalysisView.js @@ -149,11 +149,9 @@ staticAnalysisView.prototype.checkAll = function (event) { if (!this.view) { return } - var checkBoxes = this.view.querySelectorAll('[name="staticanalysismodule"]') - var selectionsCount = this.view.querySelectorAll('[name="staticanalysismodule"]:checked').length // checks/unchecks all - checkBoxes.forEach((checkbox) => { checkbox.checked = !selectionsCount }) - event.target.checked = !selectionsCount + var checkBoxes = this.view.querySelectorAll('[name="staticanalysismodule"]') + checkBoxes.forEach((checkbox) => { checkbox.checked = event.target.checked }) } staticAnalysisView.prototype.renderModules = function () {