mod_invites_page: Also remove jQuery usage in client page
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>
Thu, 16 Nov 2023 19:18:05 +0100
changeset 5728 b117b63bcdbb
parent 5727 5f7f6ee32a11
child 5729 ef3aa6901a93
mod_invites_page: Also remove jQuery usage in client page
mod_invites_page/html/client.html
--- 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>