Skip to content

Commit

Permalink
Web/CLI: completion suggestions are clickable
Browse files Browse the repository at this point in the history
  • Loading branch information
p-l- committed Jun 18, 2018
1 parent ca2dd1f commit 12b22a4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions web/static/ivre/tooltip.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,12 @@ var ToolTip = {
"title": "Possible commands",
"content": matching_keys.map(
function(x) {
return x.substr(0, key.length) +
return "<span onclick=\"$('#" + elt.id +
"').val('" + x + "').focus();\">" +
x.substr(0, key.length) +
"<b><span style=\"color: red;\">" +
x.substr(key.length, 1) + "</span>" +
x.substr(key.length + 1) + "</b>";
x.substr(key.length + 1) + "</b></span>";
}).join("<br>"),
};
}
Expand Down

0 comments on commit 12b22a4

Please sign in to comment.