Explorar o código

fix highlight history event

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

BIN=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;