Fix code output logic

Fix codemirror url paths
This commit is contained in:
Berkeley Martinez
2015-11-24 15:01:22 -08:00
parent 8c261180d3
commit 04db6744b9
2 changed files with 8 additions and 5 deletions

View File

@ -9,7 +9,7 @@ window.common = (function(global) {
if (
!CodeMirror ||
challengeType !== challengeTypes.JS ||
challengeType !== challengeTypes.JS &&
challengeType !== challengeTypes.BONFIRE
) {
common.updateOutputDisplay = () => {};

View File

@ -1,8 +1,8 @@
extends ../layout-wide
block content
link(rel='stylesheet', href='/js/lib/CodeMirror/lib/codemirror.css')
link(rel='stylesheet', href='/js/lib/CodeMirror/addon/lint/lint.css')
link(rel='stylesheet', href='/js/lib/CodeMirror/theme/monokai.css')
link(rel='stylesheet', href='/bower_components/CodeMirror/lib/codemirror.css')
link(rel='stylesheet', href='/bower_components/CodeMirror/addon/lint/lint.css')
link(rel='stylesheet', href='/bower_components/CodeMirror/theme/monokai.css')
link(rel='stylesheet', href='/css/ubuntu.css')
.row(ng-controller="pairedWithController")
.col-md-4.col-lg-3
@ -100,4 +100,7 @@ block content
window.main.chat.createHelpChat('freecodecamp/help', '#challenge-help-btn');
}
});
editor.setOption("mode", "javascript");
common.init.push(function() {
common.editor.setOption('mode', 'javascript');
});