fix: bouton PLY — viewer-btn JS handler au lieu HTMX (evite JSON dans la page)

This commit is contained in:
Flag
2026-04-23 20:52:25 +00:00
parent 7f8c1d0d07
commit 9e9eff6cc1

View File

@@ -54,7 +54,7 @@
{% if j.viser_url %}
<a class="btn-viser" href="{{ j.viser_url }}" target="_blank" rel="noopener">viser ↗</a>
{% else %}
<button class="btn-viser" hx-post="jobs/{{ j.id }}/view" hx-target="#jobs-table" hx-swap="outerHTML" title="Charger PLY dans viser">PLY ↗</button>
<button class="viewer-btn" data-view-url="jobs/{{ j.id }}/view" title="Charger PLY dans viser">PLY ↗</button>
{% endif %}
{% if j.glb_url %}
<a class="btn-glb" href="{{ j.glb_url }}" download>GLB ↓</a>