summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimotej Lazar <timotej.lazar@fri.uni-lj.si>2016-02-28 14:32:21 +0100
committerTimotej Lazar <timotej.lazar@fri.uni-lj.si>2016-02-28 14:32:21 +0100
commitc09e33e6845290392684e50d098cc9825c327575 (patch)
tree9a2c95a72e1ff918225130e1b466804bbad19409
parent6c3e4fa5a674063e61fb92f5d9001649476c9cc0 (diff)
Fix indentation in prolog.js
-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