From f7a215c953b69eee8f6c2c36ca701c4970569c0e Mon Sep 17 00:00:00 2001 From: aignatov-bio Date: Thu, 28 May 2020 10:55:36 +0200 Subject: [PATCH] Fix escape issue in dropdowns --- app/assets/javascripts/sitewide/dropdown_selector.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/assets/javascripts/sitewide/dropdown_selector.js b/app/assets/javascripts/sitewide/dropdown_selector.js index 55a73ec96..5c8ec39c6 100644 --- a/app/assets/javascripts/sitewide/dropdown_selector.js +++ b/app/assets/javascripts/sitewide/dropdown_selector.js @@ -632,11 +632,10 @@ var dropdownSelector = (function() { title="${$('' + label + '').text()}" data-ds-tag-group="${data.group}" data-ds-tag-id="${data.value}"> - ${label} `).insertBefore(container.find('.input-field .search-field')); - + tag.find('.tag-label').text(label); // Now we need add delete action to tag tag.find('.fa-times').click(function(e) { var tagLabel = $(this).prev();