summaryrefslogtreecommitdiff
path: root/js/codeq/prolog.js
diff options
context:
space:
mode:
authorTimotej Lazar <timotej.lazar@araneo.org>2015-10-01 14:34:18 +0200
committerTimotej Lazar <timotej.lazar@araneo.org>2015-10-01 14:34:28 +0200
commitdeb9495a60c76b0ccbcc2f55a598b400fcfff666 (patch)
treeed1e2b4af7ad47a61d0ab8ce5412da45efc51d3b /js/codeq/prolog.js
parentbc5161dac9202ec66059f5f8eb54558e90a6e5fc (diff)
Bugfix: use hinter.hasNextPlan in prolog.js
Diffstat (limited to 'js/codeq/prolog.js')
-rw-r--r--js/codeq/prolog.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/codeq/prolog.js b/js/codeq/prolog.js
index bcced1c..a9ce848 100644
--- a/js/codeq/prolog.js
+++ b/js/codeq/prolog.js
@@ -274,7 +274,7 @@
if (currentSolution) editor.setValue(currentSolution);
// $('#screen_prolog .title').text(problem.slug);
// jqDescriptionContent.html(problem.description);
- jqBtnPlan.prop('disabled', ((problemDef.plan && problemDef.plan.sl) || []).length == 0);
+ jqBtnPlan.prop('disabled', !hinter.hasNextPlan());
editor.on('change', function (instance, changeObj) {
var doc = editor.getDoc(),