Handle printer-state-reasons severity
This commit is contained in:
parent
cdcc7dc520
commit
4d0eeb35c2
1 changed files with 12 additions and 0 deletions
|
@ -120,6 +120,18 @@ function ippName(name, value)
|
||||||
{
|
{
|
||||||
return printerStateReasons[value];
|
return printerStateReasons[value];
|
||||||
}
|
}
|
||||||
|
else if (endsWith("-report", value))
|
||||||
|
{
|
||||||
|
return ippName(name, value.substr(0, value.length-"-report".length))+" (Report)"
|
||||||
|
}
|
||||||
|
else if (endsWith("-warning", value))
|
||||||
|
{
|
||||||
|
return ippName(name, value.substr(0, value.length-"-warning".length))+" (Warning)"
|
||||||
|
}
|
||||||
|
else if (endsWith("-error", value))
|
||||||
|
{
|
||||||
|
return ippName(name, value.substr(0, value.length-"-error".length))+" (Error)"
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
return value;
|
return value;
|
||||||
|
|
Loading…
Reference in a new issue