fix: reset form and quiz color on reset lesson (#1903)

* ./mvnw spotless:apply

```
[INFO] --- spotless-maven-plugin:2.41.1:apply (default-cli) @ webgoat ---
[INFO] Writing clean file: /home/ulyssa/labs/WebGoat/WebGoat-bb6e84d/src/main/java/org/owasp/webgoat/lessons/sqlinjection/introduction/SqlInjectionLesson5a.java
```

* On reset lesson: reset form and quizzes colors
This commit is contained in:
François Capon
2024-10-26 09:22:18 +02:00
committed by GitHub
parent f4c86be6c7
commit cb7c508046
2 changed files with 4 additions and 3 deletions

View File

@ -147,7 +147,6 @@ define(['jquery',
},
markAssignmentComplete: function () {
this.curForm.reset();
$(this.curForm).siblings('.assignment-success').find('i').removeClass('hidden');
this.paginationControlView.updateCollection();
},
@ -222,6 +221,8 @@ define(['jquery',
},
resetLesson: function () {
this.$el.find(form).trigger("reset");
this.$el.find(".quiz_question").removeClass('correct incorrect');
this.$el.find('.attack-feedback').hide();
this.$el.find('.attack-output').hide();
this.markAssignmentIncomplete();