From 2a7318eca205f40c35c51d3bf7c89dc9f2b635f8 Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Fri, 17 Jul 2020 22:08:34 +0100 Subject: Add descriptions to tags, and show in multiselect --- app/public/static/tagselector.js | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'app/public') diff --git a/app/public/static/tagselector.js b/app/public/static/tagselector.js index f099415..566f88a 100644 --- a/app/public/static/tagselector.js +++ b/app/public/static/tagselector.js @@ -30,6 +30,11 @@ }); function addTag(id, text) { + const idx = text.indexOf(':'); + if (idx > 0) { + text = text.substr(0, idx); + } + $('') .text(text + ' ') .data("id", id) -- cgit v1.2.3