From d657145124a601a9375b04a488ff2950f645f26d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ale=C5=A1=20Smodi=C5=A1?= Date: Tue, 29 Sep 2015 16:45:21 +0200 Subject: Correctly process hint_type and hint. --- js/codeq/hint.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'js/codeq/hint.js') diff --git a/js/codeq/hint.js b/js/codeq/hint.js index 1b97afc..0cb047a 100644 --- a/js/codeq/hint.js +++ b/js/codeq/hint.js @@ -7,7 +7,7 @@ var firstCharacterPos = {'line': 0, 'ch': 0}, sel_no_scroll = {'scroll': false}; - codeq.makeHinter = function (jqHints, jqEditor, editor, trNamespace, hintDefsA, commonHintDefsA, planDef) { + codeq.makeHinter = function (jqHints, jqEditor, editor, trNamespace, problemDef, commonDef) { var hintCounter = 0, // for generating unique class-names hintCleaners = [], planIdx = 0, @@ -134,6 +134,9 @@ codeq.tr.registerDictionary(trNamespace, dictionary); // TODO: below is a temporary code to bridge the old implementation with the new data format + var hintDefsA = problemDef.hint, + commonHintDefsA = commonDef.hint, + planDef = problemDef.plan; if (planDef.sl) planDef = planDef.sl; else planDef = planDef.en || []; var hintDefs = {}, t1, t2, k; -- cgit v1.2.1