From 4993c18e47561c201161fbe0f133f029d57c7b5c Mon Sep 17 00:00:00 2001 From: Timotej Lazar Date: Wed, 23 Sep 2015 14:45:44 +0200 Subject: Use static hint handler to show "planning" hints --- js/codeq/hint.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'js') diff --git a/js/codeq/hint.js b/js/codeq/hint.js index 55acac9..e1c7a6b 100644 --- a/js/codeq/hint.js +++ b/js/codeq/hint.js @@ -45,7 +45,7 @@ typeHandlers = { 'static': function (type, template, serverHint) { - var args = serverHint.args, + var args = serverHint ? serverHint.args : null, jqContainer, jqButton, i, N, tmpl, tmplIsObject; if (template instanceof Array) { // unwrap the template if there's only one if (template.length == 0) template = ''; @@ -136,7 +136,8 @@ */ 'planNext': function () { if (planIdx < planDef.length) { - jqHints.append('
' + planDef[planIdx++] + '
'); + typeHandlers['static']('static', planDef[planIdx], null); + planIdx++; } return planIdx < planDef.length; }, -- cgit v1.2.1