From c09e33e6845290392684e50d098cc9825c327575 Mon Sep 17 00:00:00 2001 From: Timotej Lazar Date: Sun, 28 Feb 2016 14:32:21 +0100 Subject: Fix indentation in prolog.js --- js/codeq/prolog.js | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/js/codeq/prolog.js b/js/codeq/prolog.js index 0d2f9d5..7cf9592 100644 --- a/js/codeq/prolog.js +++ b/js/codeq/prolog.js @@ -42,17 +42,17 @@ along with this program. If not, see . */ codeq.globalStateMachine.register('prolog', { 'jqScreen': jqScreen, 'enter': function (ref, data) { - codeq.loadProblemData(ref,data).then(function(problem){ - //codeq.log.debug("then:"+JSON.stringify(problem)); - enterFun(problem.generalProblemData,data.commonDef,problem.solution); - }) - .fail(function (reason) { - codeq.log.error('Failed to obtain the problem definition: ' + reason, reason); - alert('Failed to obtain the problem definition: ' + reason); + codeq.loadProblemData(ref,data).then(function(problem){ + //codeq.log.debug("then:"+JSON.stringify(problem)); + enterFun(problem.generalProblemData,data.commonDef,problem.solution); + }) + .fail(function (reason) { + codeq.log.error('Failed to obtain the problem definition: ' + reason, reason); + alert('Failed to obtain the problem definition: ' + reason); - history.back();//TODO test - }) - .done(); + history.back();//TODO test + }) + .done(); }, 'exit': function () { jqAllButtons.off(); // unregister all event handlers -- cgit v1.2.1