Explorar el Código

사소한 수정 3

Surplus_Up (2DU) hace 6 años
padre
commit
734d8eccd4
Se han modificado 2 ficheros con 3 adiciones y 4 borrados
  1. 1 1
      route/tool/func.py
  2. 2 3
      views/main_css/js/do_open_foot.js

+ 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';