summaryrefslogtreecommitdiff
path: root/js/codeq/comms.js
diff options
context:
space:
mode:
authorAleš Smodiš <aless@guru.si>2015-10-04 19:45:51 +0200
committerAleš Smodiš <aless@guru.si>2015-10-04 19:45:51 +0200
commitc3bbf004fc6c9278f954b0b6c69e2a256351a7d0 (patch)
tree68a2c068945fdea2c08aa565b1c2b305b784c10d /js/codeq/comms.js
parent30f3e117840b2d7929822c7436ac47ab66a755e0 (diff)
Adapted to changes in codeq-server: load_problem and end_problem upon entering and leaving the problem solving screen.
Diffstat (limited to 'js/codeq/comms.js')
-rw-r--r--js/codeq/comms.js13
1 files changed, 13 insertions, 0 deletions
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;