Skip to content
This repository has been archived by the owner on Dec 13, 2023. It is now read-only.

Commit

Permalink
#150 better tom select
Browse files Browse the repository at this point in the history
  • Loading branch information
mrwunderbar666 committed Jul 11, 2022
1 parent 5192964 commit 3668573
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions flaskinventory/templates/helpers/_tomselect.html
Original file line number Diff line number Diff line change
Expand Up @@ -426,9 +426,9 @@
{% endif %}

{% if 'related_publications' in fields %}

new TomSelect('#related_publications', {plugins: ['remove_button']})

if (document.querySelector('#related_publications')) {
new TomSelect('#related_publications', {plugins: ['remove_button']})
}
{% endif %}

{% if 'tools_used' in fields %}
Expand Down

0 comments on commit 3668573

Please sign in to comment.