Software /
code /
prosody-modules
Changeset
5747:b117b63bcdbb
mod_invites_page: Also remove jQuery usage in client page
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Thu, 16 Nov 2023 19:18:05 +0100 |
parents | 5746:5f7f6ee32a11 |
children | 5748:ef3aa6901a93 |
files | mod_invites_page/html/client.html |
diffstat | 1 files changed, 4 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/mod_invites_page/html/client.html Thu Nov 16 19:17:44 2023 +0100 +++ b/mod_invites_page/html/client.html Thu Nov 16 19:18:05 2023 +0100 @@ -116,15 +116,13 @@ <script src="/share/bootstrap4/js/bootstrap.min.js"></script> <script src="{static}/qrcode.min.js"></script> <script> - $(function () { + (function () { // If QR lib loaded ok, show QR button on desktop devices if(window.QRCode) { - $('#qr-modal').one('show.bs.modal', function (e) { - new QRCode(document.getElementById("qr-invite-page"), document.location.href); - }); - $('#qr-button-container').addClass("d-md-block"); + new QRCode(document.getElementById("qr-invite-page"), document.location.href); + document.getElementById('qr-button-container').classList.add("d-md-block"); } - }); + })(); </script> </body> </html>