summaryrefslogtreecommitdiff
path: root/js/codeq
diff options
context:
space:
mode:
Diffstat (limited to 'js/codeq')
-rw-r--r--js/codeq/prolog.js20
1 files 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 <http://www.gnu.org/licenses/>. */
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