Browse Source

이것도

2DU 8 năm trước cách đây
mục cha
commit
88f76abf19
1 tập tin đã thay đổi với 3 bổ sung3 xóa
  1. 3 3
      app.py

+ 3 - 3
app.py

@@ -1197,7 +1197,7 @@ def preview(name = None, num = None):
             template(
             template(
                 'index', 
                 'index', 
                 imp = [name, wiki_set(1), wiki_set(3), login_check(), custom_css(), custom_js(), ' (미리보기)'],
                 imp = [name, wiki_set(1), wiki_set(3), login_check(), custom_css(), custom_js(), ' (미리보기)'],
-                data = '<form name="edit_form" method="post" action="/edit/' + name + action + '"> \
+                data = '<form method="post" action="/edit/' + name + action + '"> \
                             <textarea style="height: 80%;" name="content">' + request.forms.content + '</textarea> \
                             <textarea style="height: 80%;" name="content">' + request.forms.content + '</textarea> \
                             <textarea style="display: none; height: 80%;" name="otent">' + request.forms.otent + '</textarea> \
                             <textarea style="display: none; height: 80%;" name="otent">' + request.forms.otent + '</textarea> \
                             <br> \
                             <br> \
@@ -1206,8 +1206,8 @@ def preview(name = None, num = None):
                             <br> \
                             <br> \
                             <br> \
                             <br> \
                             <div class="form-actions"> \
                             <div class="form-actions"> \
-                                <button class="btn btn-primary" type="submit" onclick="edit_form.action=\'/edit/' + name + action + '\';">저장</button> \
-                                <button class="btn" type="submit" onclick="edit_form.action=\'/preview/' + name + action + '\';">미리보기</button> \
+                                <button class="btn btn-primary" type="submit">저장</button> \
+                                <button class="btn" type="submit" formaction="/preview/' + url_pas(name) + action + '">미리보기</button> \
                             </div> \
                             </div> \
                         </form> \
                         </form> \
                         <br>' + enddata,
                         <br>' + enddata,