Files
codeocean/app/assets/javascripts/editor.js.erb
Alexander Kastius fbb1cfb67b Cleaned up code.
2016-08-12 13:22:52 +02:00

23 lines
634 B
Plaintext

$(function() {
//Merge all editor components. OOP for the win. O rly.
//TODO Change this. Otherwise it will fuck people up,
//because it's really confusing if the variables and the code are
//split over 6 files.
$.extend(CodeOceanEditor,
CodeOceanEditorAJAX,
CodeOceanEditorEvaluation,
CodeOceanEditorFlowr,
CodeOceanEditorSubmissions,
CodeOceanEditorTurtle,
CodeOceanEditorWebsocket);
if ($('#editor').isPresent() && CodeOceanEditor) {
if (CodeOceanEditor.isBrowserSupported()) {
CodeOceanEditor.initializeEverything();
} else {
$('#alert').show();
}
}
});