Skip to content

Commit

Permalink
Some fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
PatrikBuetler committed Sep 7, 2024
1 parent b382dab commit 988e06c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions views/job/detail.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,12 +99,13 @@ function updateAll() {
$('#errors').text(obj.response.logErrorCount);
$('#warnings').text(obj.response.logWarningCount);
if (obj.response.logErrorCount >= 1) {
document.getElementById('logErrorBanner').style.display = 'block';
}
if (obj.response.logWarningCount >= 1 && obj.response.logErrorCount < 1) {
document.getElementById('logWarningBanner').style.display = 'block';
}
if (obj.response.logErrorCount >= 1) {
document.getElementById('logWarningBanner').style.display = 'none';
document.getElementById('logErrorBanner').style.display = 'block';
}
if (obj.response.logContainsMandatory == 0) {
document.getElementById('logMandatoryBanner').style.display = 'block';
}
Expand Down

0 comments on commit 988e06c

Please sign in to comment.