diff options
author | Mario Vavti <mario@mariovavti.com> | 2025-01-23 13:08:13 +0100 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2025-01-23 13:08:13 +0100 |
commit | 4efa8536906735864a96c6609d0a09d7bf2c320b (patch) | |
tree | 30df2d6568f918efc4c3e53b349edd8ea344f5b8 /view/theme/redbasic/js/redbasic.js | |
parent | 2d2c9fa5198859700034666cb225d61bfd4b7c23 (diff) | |
download | volse-hubzilla-4efa8536906735864a96c6609d0a09d7bf2c320b.tar.gz volse-hubzilla-4efa8536906735864a96c6609d0a09d7bf2c320b.tar.bz2 volse-hubzilla-4efa8536906735864a96c6609d0a09d7bf2c320b.zip |
tagsinput still requires jquery
Diffstat (limited to 'view/theme/redbasic/js/redbasic.js')
-rw-r--r-- | view/theme/redbasic/js/redbasic.js | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/view/theme/redbasic/js/redbasic.js b/view/theme/redbasic/js/redbasic.js index be80cd268..9336b7866 100644 --- a/view/theme/redbasic/js/redbasic.js +++ b/view/theme/redbasic/js/redbasic.js @@ -135,10 +135,8 @@ document.addEventListener('DOMContentLoaded', function () { }); }); - document.querySelectorAll('input[data-role=cat-tagsinput]').forEach(function (input) { - input.addEventListener('change', function () { - input.classList.add('badge', 'rounded-pill', 'bg-warning', 'text-dark'); - }); + $("input[data-role=cat-tagsinput]").tagsinput({ + tagClass: 'badge rounded-pill bg-warning text-dark' }); document.querySelectorAll('a.disabled').forEach(function (link) { |