Explorar o código

highlight fix

Avetisyan Karen %!s(int64=4) %!d(string=hai) anos
pai
achega
446d141932
Modificáronse 2 ficheiros con 1 adicións e 1 borrados
  1. BIN=BIN
      web_interface/dist/wui-3-rt/main.js
  2. 1 1
      web_interface/src/wui-3-rt/main.js

BIN=BIN
web_interface/dist/wui-3-rt/main.js


+ 1 - 1
web_interface/src/wui-3-rt/main.js

@@ -611,7 +611,7 @@ function history_dataref() {
 
         td.innerHTML = td_value;
         if (num === 1) {
-          if (td_value === 'Авария' || td_value === 'Ошибка') {
+          if (!!td_value.match(/Авария|Ошибка/)) {
             td.style.color = ALARM_RED;
           } else {
             td.style.color = '#333';