.
This commit is contained in:
@@ -206,7 +206,7 @@
|
|||||||
if (!normal) {
|
if (!normal) {
|
||||||
if ($('#id_answers-TOTAL_FORMS').val() == "0") {
|
if ($('#id_answers-TOTAL_FORMS').val() == "0") {
|
||||||
add_answers_input_form();
|
add_answers_input_form();
|
||||||
alert("Please add an answer")
|
toastr.error(`Please enter an answers (or select Normal)`);
|
||||||
evt.preventDefault();
|
evt.preventDefault();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -214,7 +214,7 @@
|
|||||||
|
|
||||||
|
|
||||||
if (!$("#id_examination_to option").length) {
|
if (!$("#id_examination_to option").length) {
|
||||||
alert("Please add examination type")
|
toastr.rerror("Please add examination type")
|
||||||
evt.preventDefault();
|
evt.preventDefault();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user