summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
Diffstat (limited to 'js')
-rw-r--r--js/prolog.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/js/prolog.js b/js/prolog.js
index a377cc9..e3c395c 100644
--- a/js/prolog.js
+++ b/js/prolog.js
@@ -187,6 +187,11 @@
hintHandlers = {
'static': function (type, template, serverHint) {
codeq.log.debug('Processing static hint');
+ if (serverHint.args) {
+ template = template.replace(/\[%=(\w+)%\]/g, function(match, name) {
+ return serverHint.args[name];
+ });
+ }
jqHints.append('<div class="hint-static">' + template + '</div>'); // TODO: incorporate any serverHint.args
// no hint cleaner here, a static hint remains on the screen
},