|
|
|
|
|
|
|
|
// Mark the file as viewed visually - will especially change the background |
|
|
// Mark the file as viewed visually - will especially change the background |
|
|
if (this.checked) { |
|
|
if (this.checked) { |
|
|
form.classList.add(viewedStyleClass); |
|
|
form.classList.add(viewedStyleClass); |
|
|
|
|
|
checkbox.setAttribute('checked', ''); |
|
|
prReview.numberOfViewedFiles++; |
|
|
prReview.numberOfViewedFiles++; |
|
|
} else { |
|
|
} else { |
|
|
form.classList.remove(viewedStyleClass); |
|
|
form.classList.remove(viewedStyleClass); |
|
|
|
|
|
checkbox.removeAttribute('checked'); |
|
|
prReview.numberOfViewedFiles--; |
|
|
prReview.numberOfViewedFiles--; |
|
|
} |
|
|
} |
|
|
|
|
|
|