Fix embed date filter reload and classify profitable stops as trailing TP.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -684,8 +684,21 @@ function toggleStatsCard(){
|
||||
btn.innerText = collapsed ? "展开" : "折叠";
|
||||
}
|
||||
|
||||
function bindListWindowDateAutoCustom(){
|
||||
const preset = document.getElementById("win-preset-select");
|
||||
const fromEl = document.getElementById("win-from-utc");
|
||||
const toEl = document.getElementById("win-to-utc");
|
||||
function toCustom(){
|
||||
if(preset) preset.value = "custom";
|
||||
toggleListWindowCustom();
|
||||
}
|
||||
if(fromEl) fromEl.addEventListener("change", toCustom);
|
||||
if(toEl) toEl.addEventListener("change", toCustom);
|
||||
}
|
||||
|
||||
attachListWindowToExports();
|
||||
toggleListWindowCustom();
|
||||
bindListWindowDateAutoCustom();
|
||||
initStatsSegmentFromUrl();
|
||||
if(document.getElementById("journal-list")) loadJournals();
|
||||
if(document.getElementById("review-list")) loadReviews();
|
||||
|
||||
@@ -115,6 +115,6 @@
|
||||
<script src="/static/manual_order_rr_preview.js?v=3"></script>
|
||||
<script src="/static/key_monitor_form.js?v=1"></script>
|
||||
{% include 'embed_boot_scripts.html' %}
|
||||
<script src="/static/instance_embed.js?v=2"></script>
|
||||
<script src="/static/instance_embed.js?v=3"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user