From deb9495a60c76b0ccbcc2f55a598b400fcfff666 Mon Sep 17 00:00:00 2001 From: Timotej Lazar Date: Thu, 1 Oct 2015 14:34:18 +0200 Subject: Bugfix: use hinter.hasNextPlan in prolog.js --- js/codeq/prolog.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'js/codeq') 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(), -- cgit v1.2.1