fix: remove implicit context path guessing (#1956)

Pass the context-path in the assignment overview so the frontend can easily match an assignment.
This commit is contained in:
Nanne Baars
2024-11-13 21:32:28 +01:00
committed by GitHub
parent e60ca6ce72
commit 4880afa0e3
5 changed files with 9 additions and 12 deletions

View File

@ -121,7 +121,6 @@ define(['jquery',
this.showHintsView = function() {
var self=this;
console.log(self.name);
if (!this.lessonHintView) {
this.createLessonHintView();
}

View File

@ -68,10 +68,6 @@ define(['jquery',
}
},
getCurrentPage: function () {
return this.currentPage;
},
makeFormsAjax: function () {
this.$form = $('form.attack-form');
// turn off standard submit

View File

@ -47,7 +47,6 @@ define(['jquery',
var pages = [];
_.each(this.collection.models, function(model) {
//alert (model.get('solved'));
if (model.get('solved')) {
var key = model.get('assignment').path.replace(/\//g,'');
solvedMap[key] = model.get('assignment').name;
@ -57,7 +56,6 @@ define(['jquery',
isAttackSolved = function (path) {
//strip
//var newPath = path.replace(/^\/WebGoat/,'');
var newPath = path.replace(/\//g,'');
if (typeof solvedMap[newPath] !== 'undefined') {
return true;