Update staticAnalysisView.js

pull/1/head
Liana Husikyan 6 years ago committed by LianaHus
parent 4adce90817
commit 92b68fe770
  1. 6
      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 () {

Loading…
Cancel
Save