diff --git a/app/templates/documents/detail.html b/app/templates/documents/detail.html index ca976d1..4d57b08 100644 --- a/app/templates/documents/detail.html +++ b/app/templates/documents/detail.html @@ -318,8 +318,8 @@ document.addEventListener("DOMContentLoaded", () => { {% endif %} {% if replica_debug_overlay_output %} Replica (Debug) - {% endif %} DOCX + {% endif %} {% if overlay_page_data %}
@@ -1981,17 +1981,11 @@ document.addEventListener("DOMContentLoaded", () => {
- View Scan - {% if replica_clean_output %} - View Replica - {% endif %} - View DOCX Ready
Document
-Run Vision Analysis
@@ -3043,6 +3037,7 @@ function refreshSelectionUI(opts = {}) { if (snapGuides?.x != null) drawPageGuideLine("x", snapGuides.x, "rgba(220,38,38,0.9)"); if (snapGuides?.y != null) drawPageGuideLine("y", snapGuides.y, "rgba(220,38,38,0.9)"); } + function renderCanvas() { const sized = sizeCanvasToStage(); if (!sized) { @@ -3819,17 +3814,6 @@ function refreshSelectionUI(opts = {}) { }); document.getElementById("layout-tool-pan")?.addEventListener("click", () => setTool("pan")); document.getElementById("layout-tool-add")?.addEventListener("click", () => setTool("add")); - if (res.redirected) { - window.location.href = res.url; - return; - } - setStatus("Vision request sent"); - } catch (err) { - console.error("[vision-analysis] request failed", err); - setStatus("Vision request failed"); - } - }); - document.getElementById("layout-delete-word")?.addEventListener("click", deleteSelectedWord); document.getElementById("layout-delete-word-inline")?.addEventListener("click", deleteSelectedWord); @@ -4810,4 +4794,3 @@ document.addEventListener("DOMContentLoaded", () => { } }); -