Don't consider reports to be warnings
This commit is contained in:
parent
0ff8b6e2e2
commit
2604c65466
1 changed files with 7 additions and 2 deletions
|
@ -324,10 +324,15 @@ function isWaringState(printer)
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
else if(!has(printer.attrs["printer-state-reasons"].value, "none"))
|
|
||||||
|
for(var i in printer.attrs["printer-state-reasons"].value)
|
||||||
|
{
|
||||||
|
var value = printer.attrs["printer-state-reasons"].value[i];
|
||||||
|
if(value != "none" && !(endsWith("-report", value)))
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue