Add suggestions list with goals and targets

This will allow autocomplete for the loaded values in suggestions settings.
We remove commas on tag to allow to jquery.amsify.suggestag.js use comma
as delimiter.
This commit is contained in:
taitus
2021-01-18 11:59:38 +01:00
parent 334d803332
commit 25501c74bb
5 changed files with 82 additions and 1 deletions

View File

@@ -4,6 +4,10 @@
initialize: function() {
if ($(".sdg-related-list-selector").length) {
var amsify_suggestags = new AmsifySuggestags($(".sdg-related-list-selector .input"));
amsify_suggestags._settings({
suggestions: $(".sdg-related-list-selector .input").data("suggestions-list"),
});
amsify_suggestags.classes.focus = ".sdg-related-list-focus";
amsify_suggestags.classes.sTagsInput = ".sdg-related-list-selector-input";
amsify_suggestags._init();