summaryrefslogtreecommitdiff
path: root/js/codeq
diff options
context:
space:
mode:
authorAleš Smodiš <aless@guru.si>2015-09-29 11:53:46 +0200
committerAleš Smodiš <aless@guru.si>2015-09-29 11:53:46 +0200
commita2c468392673e55425fda9a5a331b86935b07781 (patch)
tree6faa28d5d866c7993bbce90553873654ea6180a0 /js/codeq
parent268f24905e4cc488c80f1d057451b6e528e3ff05 (diff)
Temporary "plan" button fix: look at the presence of Slovene translation to decide whether to activate or not the button.
Diffstat (limited to 'js/codeq')
-rw-r--r--js/codeq/prolog.js2
-rw-r--r--js/codeq/python.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/js/codeq/prolog.js b/js/codeq/prolog.js
index d827139..640aa99 100644
--- a/js/codeq/prolog.js
+++ b/js/codeq/prolog.js
@@ -272,7 +272,7 @@
if (currentSolution) editor.setValue(currentSolution);
// $('#screen_prolog .title').text(problem.slug);
// jqDescriptionContent.html(problem.description);
- jqBtnPlan.prop('disabled', ((problemDef.plan && problemDef.plan.en) || []).length == 0);
+ jqBtnPlan.prop('disabled', ((problemDef.plan && problemDef.plan.sl) || []).length == 0);
editor.on('change', function (instance, changeObj) {
var doc = editor.getDoc(),
diff --git a/js/codeq/python.js b/js/codeq/python.js
index c58d7e6..4724982 100644
--- a/js/codeq/python.js
+++ b/js/codeq/python.js
@@ -243,7 +243,7 @@
if (currentSolution) editor.setValue(currentSolution);
// $('#screen_python .title').text(problem.slug);
// jqDescriptionContent.html(problem.description);
- jqBtnPlan.prop('disabled', ((problemDef.plan && problemDef.plan.en) || []).length == 0);
+ jqBtnPlan.prop('disabled', ((problemDef.plan && problemDef.plan.sl) || []).length == 0);
editor.on('change', function (instance, changeObj) {
var doc = editor.getDoc(),