remove local toastr (out of date)
This commit is contained in:
Vendored
-1
File diff suppressed because one or more lines are too long
Vendored
-7
File diff suppressed because one or more lines are too long
@@ -204,8 +204,10 @@
|
|||||||
ifNormal();
|
ifNormal();
|
||||||
|
|
||||||
$("#rapid-form").on("submit", (evt) => {
|
$("#rapid-form").on("submit", (evt) => {
|
||||||
|
submit = true;
|
||||||
if (!normal) {
|
if (!normal) {
|
||||||
if ($('#id_answers-TOTAL_FORMS').val() == "0") {
|
if ($('#id_answers-TOTAL_FORMS').val() == "0") {
|
||||||
|
submit = false;
|
||||||
add_answers_input_form();
|
add_answers_input_form();
|
||||||
toastr.error(`Please enter an answers (or select Normal)`);
|
toastr.error(`Please enter an answers (or select Normal)`);
|
||||||
evt.preventDefault();
|
evt.preventDefault();
|
||||||
@@ -215,27 +217,30 @@
|
|||||||
|
|
||||||
|
|
||||||
if (!$("#id_examination_to option").length) {
|
if (!$("#id_examination_to option").length) {
|
||||||
|
submit = false;
|
||||||
toastr.error("Please add examination type")
|
toastr.error("Please add examination type")
|
||||||
evt.preventDefault();
|
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"
|
|
||||||
});
|
|
||||||
|
|
||||||
|
if (submit) {
|
||||||
|
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"
|
||||||
|
});
|
||||||
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -15,7 +15,7 @@
|
|||||||
<link rel="stylesheet" href="{% static 'tagulous/lib/select2-3/select2.css' %}">
|
<link rel="stylesheet" href="{% static 'tagulous/lib/select2-3/select2.css' %}">
|
||||||
<link rel="stylesheet" href="{% static 'css/anatomy.css' %}">
|
<link rel="stylesheet" href="{% static 'css/anatomy.css' %}">
|
||||||
<link rel="stylesheet" href="{% static 'css/dicomViewer.css' %}">
|
<link rel="stylesheet" href="{% static 'css/dicomViewer.css' %}">
|
||||||
<link rel="stylesheet" href="{% static 'css/toastr.min.css' %}">
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/toastr.js/2.1.4/toastr.min.css" integrity="sha512-6S2HWzVFxruDlZxI3sXOZZ4/eJ8AcxkQH1+JjSe/ONCEqR9L4Ysq5JdT5ipqtzU7WHalNwzwBv+iE51gNHJNqQ==" crossorigin="anonymous" referrerpolicy="no-referrer" />
|
||||||
|
|
||||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
|
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
|
||||||
<script src="{% static 'admin/js/core.js' %}"></script>
|
<script src="{% static 'admin/js/core.js' %}"></script>
|
||||||
@@ -27,7 +27,7 @@
|
|||||||
<!-- <script src="{% static 'tagulous/lib/jquery.js' %}"></script> -->
|
<!-- <script src="{% static 'tagulous/lib/jquery.js' %}"></script> -->
|
||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/html5sortable/0.10.0/html5sortable.min.js" integrity="sha512-tBlVMq89XaEC9iU5LyRjP2Vxs8SmVhEHGbv2Co6SbGa14Wsxy2qZN0jadrN+Xn5AifORaUbvZcG21/ExcNfWDA==" crossorigin="anonymous"></script>
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/html5sortable/0.10.0/html5sortable.min.js" integrity="sha512-tBlVMq89XaEC9iU5LyRjP2Vxs8SmVhEHGbv2Co6SbGa14Wsxy2qZN0jadrN+Xn5AifORaUbvZcG21/ExcNfWDA==" crossorigin="anonymous"></script>
|
||||||
<script src="{% static 'tesseract.min.js' %}"></script>
|
<script src="{% static 'tesseract.min.js' %}"></script>
|
||||||
<script src="{% static 'js/toastr.min.js' %}"></script>
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/toastr.js/2.1.4/toastr.min.js" integrity="sha512-lbwH47l/tPXJYG9AcFNoJaTMhGvYWhVM9YI43CT+uteTRRaiLCui8snIgyAN8XWgNjNhCqlAUdzZptso6OCoFQ==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
|
||||||
<script src="{% static 'js/cornerstone/hammer.js' %}"></script>
|
<script src="{% static 'js/cornerstone/hammer.js' %}"></script>
|
||||||
<script src="{% static 'js/cornerstone/cornerstone.min.js' %}"></script>
|
<script src="{% static 'js/cornerstone/cornerstone.min.js' %}"></script>
|
||||||
<script src="{% static 'js/cornerstone/dicomParser.min.js' %}"></script>
|
<script src="{% static 'js/cornerstone/dicomParser.min.js' %}"></script>
|
||||||
|
|||||||
Reference in New Issue
Block a user