From 22e161e1b4f1d636e4ff31551af524dd50980b47 Mon Sep 17 00:00:00 2001 From: Ross Date: Sun, 31 Oct 2021 00:01:05 +0100 Subject: [PATCH] . --- rapids/templates/rapids/rapid_form.html | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/rapids/templates/rapids/rapid_form.html b/rapids/templates/rapids/rapid_form.html index 4ba9080e..9a098c43 100755 --- a/rapids/templates/rapids/rapid_form.html +++ b/rapids/templates/rapids/rapid_form.html @@ -215,9 +215,26 @@ if (!$("#id_examination_to option").length) { - toastr.error("Please add examination type") - evt.preventDefault(); + toastr.error("Please add examination type") + evt.preventDefault(); } + toastr.info(`Submiting question... please wait`, { + "closeButton": false, + "debug": false, + "newestOnTop": false, + "progressBar": true, + "positionClass": "toast-top-full-width", + "preventDuplicates": false, + "onclick": null, + "showDuration": "300", + "hideDuration": "1000", + "timeOut": "5000", + "extendedTimeOut": "1000", + "showEasing": "swing", + "hideEasing": "linear", + "showMethod": "fadeIn", + "hideMethod": "fadeOut" + }); }) @@ -396,7 +413,7 @@ // try to match with a study description option = $(`#id_examination_from option[title*='${study_description}' i]`); - + if (option.length) { option.appendTo($("#id_examination_to")); toastr.success(`Examination set to ${option.attr('title')} from dicom data`);