Commit 92b68fe7 authored by Liana Husikyan's avatar Liana Husikyan Committed by LianaHus

Update staticAnalysisView.js

parent 4adce908
......@@ -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 () {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment