fix wrong link in refactor, since "this" is no longer available in javascript calls.

This commit is contained in:
Ralf Teusner
2016-10-12 14:37:09 +02:00
parent 1dfd6f61dc
commit 4cf192d0f3

View File

@ -86,7 +86,7 @@ var CodeOceanEditor = {
showOutput: function(event) {
event.preventDefault();
this.showOutputBar();
$('#output').scrollTo($(this).attr('href'));
$('#output').scrollTo($(event.target).attr('href'));
},
renderProgressBar: function(score, maximum_score) {