This commit is contained in:
Ross
2021-01-04 14:33:46 +00:00
parent 1afe641931
commit eafe6ea051
3 changed files with 9 additions and 6 deletions
+1 -2
View File
@@ -31,8 +31,7 @@ $(document).ready(function () {
if($(".post-form").length > 0) {
$(".post-form").get(0).addEventListener("submit", function (e) {
console.log(e);
if($(".not-marked").length > 0) {
if($(".not-marked").length > 0 && e.submitter.name != "skip") {
e.preventDefault(); // before the code
alert("Ensure all answers are marked first");
}