Ver Fonte

토론 버그 수정

Surplus_Up (2DU) há 6 anos atrás
pai
commit
dae9d3bec4
4 ficheiros alterados com 7 adições e 4 exclusões
  1. 1 1
      route/tool/func.py
  2. 1 1
      route/topic.py
  3. 1 1
      version.json
  4. 4 1
      views/main_css/js/topic_main_load.js

+ 1 - 1
route/tool/func.py

@@ -427,7 +427,7 @@ def other2(data):
         data += ['']
 
     req_list = ''
-    main_css_ver = 11
+    main_css_ver = 12
 
     if not 'main_css_load' in flask.session or not 'main_css_ver' in flask.session or flask.session['main_css_ver'] != main_css_ver:
         for i_data in os.listdir(os.path.join("views", "main_css", "css")):

+ 1 - 1
route/topic.py

@@ -92,7 +92,7 @@ def topic_2(conn, topic_num):
         ])
         conn.commit()
 
-        return redirect('/thread/' + str(topic_num))
+        return redirect('/thread/' + str(topic_num) + '?where=bottom')
     else:
         data = ''
 

+ 1 - 1
version.json

@@ -1,6 +1,6 @@
 {
     "master" : {
-        "r_ver" : "v3.1.6-master-17",
+        "r_ver" : "v3.1.6-master-18",
         "c_ver" : "400009",
         "s_ver" : "7"
     }, "stable" : {

+ 4 - 1
views/main_css/js/topic_main_load.js

@@ -31,7 +31,10 @@ function topic_main_load(topic_num, s_num) {
 
             o_data.innerHTML = n_data;
             eval(t_plus_data);
-
+            if(window.location.search === "?where=bottom") {
+                document.getElementById(num).focus();
+            }
+            
             if(!s_num) {
                 topic_plus_load(topic_num, String(Number(num) + 1));
             }