remove code that showed tabs and leftovers of serversend events (runmode)

This commit is contained in:
Ralf Teusner
2016-09-09 15:40:53 +02:00
parent 77452e6c2b
commit 46cb071503
3 changed files with 1 additions and 47 deletions

View File

@@ -8,7 +8,6 @@ CodeOceanEditorEvaluation = {
}, 0).toFixed(2);
$('#score').data('score', score);
this.renderScore();
this.showTab(1);
},
handleTestResponse: function (result) {
@@ -18,7 +17,6 @@ CodeOceanEditorEvaluation = {
this.qa_api.executeCommand('syncOutput', [result]);
}
this.showStatus(result);
this.showTab(0);
this.showOutputBar();
},
@@ -102,7 +100,6 @@ CodeOceanEditorEvaluation = {
scoreCode: function (event) {
event.preventDefault();
this.runmode = this.SERVER_SEND_EVENT;
this.createSubmission('#assess', null, function (response) {
this.showSpinner($('#assess'));
$('#score_div').removeClass('hidden');
@@ -114,12 +111,7 @@ CodeOceanEditorEvaluation = {
stopCode: function (event) {
event.preventDefault();
if (this.isActiveFileStoppable()) {
if (this.runmode == this.WEBSOCKET) {
this.killWebsocketAndContainer();
} else if (this.runmode == this.SERVER_SEND_EVENT) {
this.stopCodeServerSendEvent(event);
}
this.runmode = this.NONE;
this.killWebsocketAndContainer();
}
},