anchor.diff:    var commentOnExerciseButton = $('#comment-exercise-button');
     var addCommentExerciseButton = $('#addCommentExerciseButton')
   
  -  solvedButton.on('click', function(event){
  -    var jqrequest = $.ajax({
  +  solvedButton.on('click', function(){
  +    $.ajax({
         dataType: 'json',
         method: 'GET',
         url: location + '/mark_as_solved'
  -    });
  -
  -    jqrequest.done(function(response){
  +    }).done(function(response){
         if(response.solved){
  -        solvedButton.hide();
  +        solvedButton.removeClass('btn-primary');
  +        solvedButton.addClass('btn-success');
  +        solvedButton.html('<%= t('request_for_comments.solved') %>');
  +        solvedButton.off('click');
         }
       });
     });
  
positive.code:   });
  
    var commentitor = $('.editor');
    var userid = commentitor.data('user-id');
  
    commentitor.each(function (index, editor) {
      var currentEditor = ace.edit(editor);
  
negative.code:     var editor =  e.editor;
  
      if (target.className.indexOf("ace_gutter-cell") == -1) return;
  
      var row = e.getDocumentPosition().row;
      e.stop();
  