.
This commit is contained in:
@@ -22,7 +22,8 @@
|
|||||||
<div>
|
<div>
|
||||||
<h4>Answers</h4>
|
<h4>Answers</h4>
|
||||||
<ul class="long-answer">{% for a,b,c,d,e in answer_text %}
|
<ul class="long-answer">{% for a,b,c,d,e in answer_text %}
|
||||||
<li class="user-answer-li"><b>Question {{forloop.counter}}</b> <span class="view-question-link" data-qn={{forloop.counter0}}>View</span></li>
|
<li class="user-answer-li"><b>Question {{forloop.counter}}</b> <span class="view-question-link-longs"
|
||||||
|
data-qn={{forloop.counter0}}>View</span></li>
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
<li class="user-answer-li">Observation</br>
|
<li class="user-answer-li">Observation</br>
|
||||||
@@ -53,7 +54,7 @@
|
|||||||
{% block js %}
|
{% block js %}
|
||||||
<script>
|
<script>
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
$(".view-question-link").on("click", function (e) {
|
$(".view-question-link-longs").on("click", function (e) {
|
||||||
console.log("click", e)
|
console.log("click", e)
|
||||||
question_number = e.currentTarget.dataset.qn;
|
question_number = e.currentTarget.dataset.qn;
|
||||||
$("#single-dicom-viewer").empty();
|
$("#single-dicom-viewer").empty();
|
||||||
@@ -71,7 +72,10 @@
|
|||||||
console.log(data);
|
console.log(data);
|
||||||
|
|
||||||
let event = new CustomEvent('loadDicomViewerUrls', {
|
let event = new CustomEvent('loadDicomViewerUrls', {
|
||||||
"detail": {"images" : data.images, "annotations" : data.annotations}
|
"detail": {
|
||||||
|
"images": data.images[0],
|
||||||
|
"annotations": data.annotations
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
window.dispatchEvent(event);
|
window.dispatchEvent(event);
|
||||||
|
|||||||
Reference in New Issue
Block a user