|
|
|
@ -16,11 +16,15 @@ function create_selection_tag(tagname) { // CLEAR
|
|
|
|
|
tag.dataset.tagname = tagname
|
|
|
|
|
|
|
|
|
|
tag.insertAdjacentHTML("beforeend", `
|
|
|
|
|
<span class="fa fa-tag"></span>
|
|
|
|
|
<span class="name"></span>
|
|
|
|
|
<span class="fa fa-close close"></span>
|
|
|
|
|
<span class="tag-icon">
|
|
|
|
|
<span class="fa fa-tag"></span>
|
|
|
|
|
</span>
|
|
|
|
|
<span class="content"></span>
|
|
|
|
|
<span class="tag-right">
|
|
|
|
|
<span class="fa fa-close close"></span>
|
|
|
|
|
</span>
|
|
|
|
|
`)
|
|
|
|
|
tag.querySelector("span.name").textContent = tagname.replace(/_/g, ' ')
|
|
|
|
|
tag.querySelector("span.content").textContent = tagname.replace(/_/g, ' ')
|
|
|
|
|
// tag.querySelector("input[type=hidden]").setAttribute('name', `tag#${tagname}`)
|
|
|
|
|
return tag
|
|
|
|
|
}
|
|
|
|
@ -32,11 +36,15 @@ function create_suggestion_tag(tagname) { // CLEAR
|
|
|
|
|
tag.dataset.tagname = tagname
|
|
|
|
|
|
|
|
|
|
tag.insertAdjacentHTML("beforeend", `
|
|
|
|
|
<span class="fa fa-tag"></span>
|
|
|
|
|
<span class="name"></span>
|
|
|
|
|
<span class="fa fa-plus plus"></span>
|
|
|
|
|
<span class="tag-icon">
|
|
|
|
|
<span class="fa fa-tag"></span>
|
|
|
|
|
</span>
|
|
|
|
|
<span class="content"></span>
|
|
|
|
|
<span class="tag-right">
|
|
|
|
|
<span class="fa fa-plus plus"></span>
|
|
|
|
|
</span>
|
|
|
|
|
`)
|
|
|
|
|
tag.querySelector("span.name").textContent = tagname.replace(/_/g, ' ')
|
|
|
|
|
tag.querySelector("span.content").textContent = tagname.replace(/_/g, ' ')
|
|
|
|
|
return tag
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|