diff --git a/views/job/detail.php b/views/job/detail.php index 387e9b8b0..7627a607f 100644 --- a/views/job/detail.php +++ b/views/job/detail.php @@ -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'; }