only show interventions if condition is met. right now, only show one intervention per user and exercise

This commit is contained in:
Thomas Hille
2017-02-28 17:29:52 +01:00
parent 9c4b981bcb
commit 17d09accb7
3 changed files with 11 additions and 2 deletions

View File

@ -646,7 +646,9 @@ configureEditors: function () {
this.initializeDescriptionToggle();
this.initializeSideBarTooltips();
this.initializeTooltips();
this.initializeInterventionTimer();
if ($('#editor').data('show-interventions') == true){
this.initializeInterventionTimer();
}
this.initPrompt();
this.renderScore();
this.showFirstFile();