.
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user