Add color for warnings.

Some distinction between the levels is handy.
This commit is contained in:
Bas Stottelaar
2014-04-12 18:59:08 +02:00
parent f7ba0ff634
commit a96b793c98
2 changed files with 12 additions and 1 deletions

View File

@@ -56,10 +56,14 @@ $(document).ready(function() {
"sInfoEmpty":"Showing 0 to 0 of 0 lines",
"sInfoFiltered":"(filtered from _MAX_ total lines)"},
"fnRowCallback": function (nRow, aData, iDisplayIndex, iDisplayIndexFull) {
if (aData[1] === "WARNING" || aData[1] === "ERROR")
if (aData[1] === "ERROR")
{
$('td', nRow).closest('tr').addClass("gradeX");
}
else if (aData[1] === "WARNING")
{
$('td', nRow).closest('tr').addClass("gradeW");
}
else
{
$('td', nRow).closest('tr').addClass("gradeZ");