Help | autocomplete dropdown in BootBox
Solved
General Discussion
-
Hi there
How to create autocomplete of the usernames in bootbox?This is my code:
bootbox.prompt({ title: '[[flags:start-new-chat]]<i class="fa fa-comments-o" style="margin: 0 7px;"></i>', placeholder: '[[user:username]]', backdrop: true, callback: (res) => { if (res != null) { $.getJSON(`/api/user/${res.slice(1)}`, (data) => { app.newChat(data.uid) }) } } })
It is possible?
Thank you! -
I saw that there was it in MANAGE > Privileges > User Privileges > ADD USER
What's the code? -
NodeBB/public/src/admin/manage/privileges.js at e005b20470f3d06a9f699166b79c0795310a5b18 · NodeBB/NodeBB
Node.js based forum software built for the modern web - NodeBB/public/src/admin/manage/privileges.js at e005b20470f3d06a9f699166b79c0795310a5b18 · NodeBB/NodeBB
GitHub (github.com)
Copyright © 2024 NodeBB | Contributors