2
0
Surplus_Up (2DU) 6 жил өмнө
parent
commit
ed2787448f

+ 1 - 1
route/tool/func.py

@@ -392,7 +392,7 @@ def other2(data):
     
     js_filter = {
         'load_include.js' : '2',
-        'do_open_foot.js' : '3'
+        'do_open_foot.js' : '4'
     }
     for i_data in os.listdir(os.path.join("views", "main_css", "js")):
         if i_data in js_filter:

+ 2 - 3
views/main_css/js/do_open_foot.js

@@ -2,15 +2,14 @@ function do_open_foot(name, num = 0) {
     var found_include = name.match(/^(include_(?:[0-9]+)\-)/);
     if(found_include) {
         var include_name = name.replace(/^(?:include_(?:[0-9]+)\-)/, '');
-        var d_color = document.getElementById(found_include[1] + 'c' + include_name).style.color;
-        if(d_color === 'red' || num === 1) {
+        if(num === 1) {
             document.getElementById(found_include[1] + 'c' + include_name).style.color = 'inherit';
         } else {
             document.getElementById(found_include[1] + 'c' + include_name).style.color = 'red';
         }
     } else {
         var d_color = document.getElementById('c' + name).style.color;
-        if(d_color === 'red' || num === 1) {
+        if(num === 1) {
             document.getElementById('c' + name).style.color = 'inherit';
         } else {
             document.getElementById('c' + name).style.color = 'red';