From c3bbf004fc6c9278f954b0b6c69e2a256351a7d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ale=C5=A1=20Smodi=C5=A1?= Date: Sun, 4 Oct 2015 19:45:51 +0200 Subject: Adapted to changes in codeq-server: load_problem and end_problem upon entering and leaving the problem solving screen. --- js/codeq/python.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'js/codeq/python.js') diff --git a/js/codeq/python.js b/js/codeq/python.js index 49b6ccf..214b249 100644 --- a/js/codeq/python.js +++ b/js/codeq/python.js @@ -309,12 +309,15 @@ }); // TODO first line of interpreter output is buffered without this, why? - codeq.comms.sendPythonPush({ - 'text': '' - }); +// codeq.comms.sendPythonPush({ +// 'text': '' +// }); + + codeq.comms.loadProblem(problemDef.id).done(); return { destroy: function () { + codeq.comms.endProblem().done(); $('#screen_python .title').text('');//empty the title text jqAllButtons.off(); editor.off('change'); -- cgit v1.2.1