diff options
author | Aleš Smodiš <aless@guru.si> | 2015-10-01 14:44:53 +0200 |
---|---|---|
committer | Aleš Smodiš <aless@guru.si> | 2015-10-01 14:44:53 +0200 |
commit | 82c30c79c7c000bef57a9de2d3f8372b4dc3f213 (patch) | |
tree | d5b18b4585c653c28d9c3587af9b39f650097115 /js/codeq/python.js | |
parent | 4faf13f8b41e896e8bd4a36488707e0263096e8d (diff) | |
parent | 02dd8336417cb89500905e98f954b9c97111096b (diff) |
Merge branch 'master' of ssh://212.235.189.51:22122/codeq-web
Diffstat (limited to 'js/codeq/python.js')
-rw-r--r-- | js/codeq/python.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/codeq/python.js b/js/codeq/python.js index 59e010a..440b5f7 100644 --- a/js/codeq/python.js +++ b/js/codeq/python.js @@ -219,7 +219,8 @@ jqHints = jqInfo.find('.hints'), editor = codeq.makeEditor(jqEditor[0], { mode: 'python', - indentUnit: 4 + indentUnit: 4, + value: currentSolution || '' }), activityHandler = makeActivityHandler(editor, problemDef.id), terminal = makePythonTerminalHandler(jqTerminal, editor, problemDef.id, activityHandler), @@ -230,7 +231,6 @@ codeq.tr.registerDictionary('python', problemDef.translations); codeq.tr.translateDom(jqScreen); - if (currentSolution) editor.setValue(currentSolution); // $('#screen_python .title').text(problem.slug); // jqDescriptionContent.html(problem.description); jqBtnPlan.prop('disabled', !hinter.hasNextPlan()); |