fixes labels to be clickable.

pull/3094/head
LianaHus 6 years ago
parent 2d17f4b47b
commit ae18a71ae5
  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