This commit is contained in:
dekun
2026-05-27 22:42:32 +08:00
parent fe068709ac
commit a829cf50f3
5 changed files with 44 additions and 14 deletions
+9 -4
View File
@@ -864,7 +864,7 @@
</div>
<script src="/static/ai_review_render.js?v=1"></script>
<script src="/static/form_submit_guard.js?v=1"></script>
<script src="/static/form_submit_guard.js?v=2"></script>
<script>
const JOURNAL_ENTRY_REASON_OPTIONS = {{ entry_reason_options | tojson }};
const JOURNAL_ENTRY_REASON_OTHER = {{ entry_reason_other_value | tojson }};
@@ -1745,10 +1745,15 @@ function cancelExchangeTpsl(orderId, role){
}
function allowManualOrderSubmit(form){
if(window.FormSubmitGuard && FormSubmitGuard.isLocked(form) && form.dataset.rrOk !== "1") return;
form.dataset.rrOk = "1";
if(window.FormSubmitGuard) FormSubmitGuard.nativeSubmitOnce(form, "开仓提交中…");
else form.submit();
if(window.FormSubmitGuard){
if(FormSubmitGuard.isLocked(form)){
FormSubmitGuard.setSubmitLabel(form, "开仓提交中…");
} else {
FormSubmitGuard.lock(form, "开仓提交中…");
}
}
form.submit();
}
let latestAvailableUsdt = null;