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:
@ -121,7 +121,6 @@ define(['jquery',
|
||||
|
||||
this.showHintsView = function() {
|
||||
var self=this;
|
||||
console.log(self.name);
|
||||
if (!this.lessonHintView) {
|
||||
this.createLessonHintView();
|
||||
}
|
||||
|
@ -68,10 +68,6 @@ define(['jquery',
|
||||
}
|
||||
},
|
||||
|
||||
getCurrentPage: function () {
|
||||
return this.currentPage;
|
||||
},
|
||||
|
||||
makeFormsAjax: function () {
|
||||
this.$form = $('form.attack-form');
|
||||
// turn off standard submit
|
||||
|
@ -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;
|
||||
|
Reference in New Issue
Block a user