aboutsummaryrefslogtreecommitdiffstats
path: root/interface/js/app/libft.js
diff options
context:
space:
mode:
Diffstat (limited to 'interface/js/app/libft.js')
-rw-r--r--interface/js/app/libft.js16
1 files changed, 7 insertions, 9 deletions
diff --git a/interface/js/app/libft.js b/interface/js/app/libft.js
index 84ee2667e..7106516a2 100644
--- a/interface/js/app/libft.js
+++ b/interface/js/app/libft.js
@@ -573,17 +573,15 @@ define(["jquery", "app/common", "footable"],
ui.preprocess_item(item);
Object.values(item.symbols).forEach((sym) => {
- sym.str = '<span class="symbol-default ' + get_symbol_class(sym.name, sym.score) + '"><strong>';
-
- if (sym.description) {
- sym.str += '<abbr title="' + sym.description + '">' + sym.name + "</abbr>";
- } else {
- sym.str += sym.name;
- }
- sym.str += "</strong> (" + sym.score + ")</span>";
+ sym.str = `
+<span class="symbol-default ${get_symbol_class(sym.name, sym.score)} ${sym.description ? "has-description" : ""}" tabindex="0">
+ <strong>${sym.name}</strong>
+ ${sym.description ? `<span class="symbol-description"> • ${sym.description}</span>` : ""}
+ (${sym.score})
+</span>`;
if (sym.options) {
- sym.str += " [" + sym.options.join(",") + "]";
+ sym.str += ` [${sym.options.join(",")}]`;
}
});
unsorted_symbols.push(item.symbols);