remove local toastr (out of date)

This commit is contained in:
Ross
2021-10-31 09:12:56 +00:00
parent 22e161e1b4
commit 6471fb8cb1
4 changed files with 24 additions and 27 deletions
+22 -17
View File
@@ -204,8 +204,10 @@
ifNormal();
$("#rapid-form").on("submit", (evt) => {
submit = true;
if (!normal) {
if ($('#id_answers-TOTAL_FORMS').val() == "0") {
submit = false;
add_answers_input_form();
toastr.error(`Please enter an answers (or select Normal)`);
evt.preventDefault();
@@ -215,27 +217,30 @@
if (!$("#id_examination_to option").length) {
submit = false;
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"
});
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"
});
}
})