Browse Source

fix highlight history event

Avetisyan Karen 4 năm trước cách đây
mục cha
commit
a7154a960e
2 tập tin đã thay đổi với 6 bổ sung2 xóa
  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;