Explorar el Código

highlight fix

Avetisyan Karen hace 4 años
padre
commit
446d141932
Se han modificado 2 ficheros con 1 adiciones y 1 borrados
  1. BIN
      web_interface/dist/wui-3-rt/main.js
  2. 1 1
      web_interface/src/wui-3-rt/main.js

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';