diff options
Diffstat (limited to 'view')
-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) { |