This commit is contained in:
Ross
2021-12-01 22:52:26 +00:00
parent ae5687b2e5
commit 00d8176590
+8
View File
@@ -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]`);