diff options
author | Marko Pušnik <marko.pusnik@guru.si> | 2015-09-30 19:07:37 +0200 |
---|---|---|
committer | Marko Pušnik <marko.pusnik@guru.si> | 2015-09-30 19:07:37 +0200 |
commit | 8bb68a1e979022ead00535c25403b341f2cb24bb (patch) | |
tree | 0ad16cf9acb81cbb6f8484f32fed657e8c66dabb /js/codeq/python.js | |
parent | ba6135a83273c625097fe7cdb59319a51acca31e (diff) | |
parent | 0da1117cfc28688633be7b8382aa60435bf740eb (diff) |
Merge branch 'master' of odie.guru.si:codeq-web
Conflicts:
index.html
Diffstat (limited to 'js/codeq/python.js')
-rw-r--r-- | js/codeq/python.js | 2 |
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(), |