Explorar el Código

fix highlight history event

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

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


+ 6 - 2
web_interface/src/wui-3-rt/main.js

@@ -607,8 +607,12 @@ function history_dataref() {
         var td_value = p[j].split(';')[num];
 
         td.innerHTML = td_value;
-        if (num === 1 && td_value === 'Авария') {
-          td.style.color = ALARM_RED;
+        if (num === 1) {
+          if (td_value === 'Авария') {
+            td.style.color = ALARM_RED;
+          } else {
+            td.style.color = '#333';
+          }
         }
       }
       $('pagelimit').innerHTML = data.pages;