summaryrefslogtreecommitdiff
path: root/js/codeq/python.js
diff options
context:
space:
mode:
authorAleš Smodiš <aless@guru.si>2015-09-30 16:32:07 +0200
committerAleš Smodiš <aless@guru.si>2015-09-30 16:32:07 +0200
commit20ba9213950544c6a7f1dd04af160bf674561e3b (patch)
tree7f33742a84906830a34f3bfe7f535b52bcf72068 /js/codeq/python.js
parent7c65ca7a98e681eee5d1910c10e57072caee1799 (diff)
Implemented structural translation of hints and plans.
Diffstat (limited to 'js/codeq/python.js')
-rw-r--r--js/codeq/python.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/codeq/python.js b/js/codeq/python.js
index 8a9e92f..59e010a 100644
--- a/js/codeq/python.js
+++ b/js/codeq/python.js
@@ -233,7 +233,7 @@
if (currentSolution) editor.setValue(currentSolution);
// $('#screen_python .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(),