Jelajahi Sumber

highlight fix

Avetisyan Karen 4 tahun lalu
induk
melakukan
446d141932
2 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. TEMPAT SAMPAH
      web_interface/dist/wui-3-rt/main.js
  2. 1 1
      web_interface/src/wui-3-rt/main.js

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