diff options
author | Timotej Lazar <timotej.lazar@araneo.org> | 2015-09-23 14:45:44 +0200 |
---|---|---|
committer | Timotej Lazar <timotej.lazar@araneo.org> | 2015-09-23 14:45:44 +0200 |
commit | 4993c18e47561c201161fbe0f133f029d57c7b5c (patch) | |
tree | fd7c0b17d9e07a153d48c81e7ba01036ce8990c0 | |
parent | d70799f943a1ee6c7edbad345782fa1e1ca8277f (diff) |
Use static hint handler to show "planning" hints
-rw-r--r-- | js/codeq/hint.js | 5 |
1 files changed, 3 insertions, 2 deletions
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('<div class="plan">' + planDef[planIdx++] + '</div>'); + typeHandlers['static']('static', planDef[planIdx], null); + planIdx++; } return planIdx < planDef.length; }, |