fixes labels to be clickable.

pull/1/head
LianaHus 6 years ago
parent b5660d263f
commit eb189dcca4
  1. 6
      src/app/staticanalysis/staticAnalysisView.js

@ -59,8 +59,8 @@ staticAnalysisView.prototype.render = function () {
>
Auto run
</label>
<label class="${css.label}" for="checkAllTests">
<input id="checkAllTests"
<label class="${css.label}" for="checkAllEntries">
<input id="checkAllEntries"
type="checkbox"
onclick="${function (event) { self.checkAll(event) }}"
style="vertical-align:bottom"
@ -137,7 +137,7 @@ staticAnalysisView.prototype.run = function () {
staticAnalysisView.prototype.checkModule = function (event) {
let selected = document.querySelectorAll('[name="staticanalysismodule"]:checked')
let checkAll = document.querySelector('[id="checkAllTests"]')
let checkAll = document.querySelector('[id="checkAllEntries"]')
if (event.target.checked) {
checkAll.checked = true
} else if (!selected.length) {

Loading…
Cancel
Save