Add HTMX event handler for DICOM image setup on fragment load
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
<div class="card mb-3">
|
||||
<div class="card mb-3" hx-on="htmx:afterOnLoad: (e) => { const el = document.getElementById('anatomy-dicom-image'); if (el && typeof window.setUpDicomLegacy === 'function') { try { window.setUpDicomLegacy(el); } catch(err) { console.warn('setUpDicomLegacy failed on fragment load', err); } } }">
|
||||
<div class="card-body">
|
||||
<p class="lead">{{ question.question_type }}</p>
|
||||
<div id="anatomy-dicom-image" class="dicom-image-legacy" data-url="{{ question.get_image_url }}"
|
||||
|
||||
Reference in New Issue
Block a user