From 00d81765906ea7c369d7010f404e97770de59db0 Mon Sep 17 00:00:00 2001 From: Ross Date: Wed, 1 Dec 2021 22:52:26 +0000 Subject: [PATCH] . --- atlas/templates/atlas/series_form.html | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/atlas/templates/atlas/series_form.html b/atlas/templates/atlas/series_form.html index e169aff6..281af33e 100755 --- a/atlas/templates/atlas/series_form.html +++ b/atlas/templates/atlas/series_form.html @@ -312,6 +312,14 @@ var study_description = dataSet.string('x00081030').toLowerCase(); console.log("STUDY", study_description); + $.ajax({ + url: `{% url 'generic:examination-autocomplete' %}/${encodeURI(study_description)}`, + //context: document.body, + success: function(data){ + console.log(data) + } + }); + // try to match with a study description (if not already selected) if ($(`#id_examination_to option`).length < 1) { option = $(`#id_examination_from option[title*='${study_description}' i]`);