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/comms.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'js/codeq/comms.js') diff --git a/js/codeq/comms.js b/js/codeq/comms.js index d7d0935..ad2376e 100644 --- a/js/codeq/comms.js +++ b/js/codeq/comms.js @@ -348,6 +348,19 @@ }); }, + loadProblem: function commsLoadProblem (problem_id) { + return this.send({ + 'action': 'load_problem', + 'problem_id': problem_id + }); + }, + + endProblem: function commsLoadProblem (problem_id) { + return this.send({ + 'action': 'end_problem' + }); + }, + 'on': function (event, handler) { var handlers = requestHandlers[event], N, i; -- cgit v1.2.1