From dc2b0e9981d448ef270dc0532f13880f0d9bd7cc Mon Sep 17 00:00:00 2001
From: gravel
Date: Wed, 17 May 2023 15:51:39 +0000
Subject: [PATCH] Room name goes to modal & copy button in modal
---
output/main.js | 13 ++++++++++---
output/styles2.css | 4 ----
sites/+components/qr_modals.php | 10 +++++-----
3 files changed, 15 insertions(+), 12 deletions(-)
diff --git a/output/main.js b/output/main.js
index 6eaf9fb..fb0cc00 100644
--- a/output/main.js
+++ b/output/main.js
@@ -124,7 +124,14 @@ function addQRModalHandlers() {
'click',
() => displayQRModal(communityID)
);
-
+ row.querySelector('.td_name a').addEventListener(
+ 'click',
+ (e) => {
+ e.preventDefault();
+ displayQRModal(communityID);
+ }
+ );
+
}
const closeButton =
dom.details_modal().querySelector('#details-modal-close');
@@ -137,14 +144,14 @@ function addQRModalHandlers() {
this.close();
}
});
- /*
+
document.querySelector('#details-modal-copy-button').addEventListener(
'click',
function () {
copyToClipboard(this.getAttribute('data-href'));
}
)
- */
+
document.querySelector('#details-modal-copy-staff-id')?.addEventListener(
'click',
diff --git a/output/styles2.css b/output/styles2.css
index 3a98284..fc332d7 100644
--- a/output/styles2.css
+++ b/output/styles2.css
@@ -386,10 +386,6 @@ label[for=toggle-show-room-ids]::after {
margin-right: 1em;
}
-#details-modal-copy-button {
- font-size: 1.1em;
-}
-
#details-modal-end {
display: flex;
flex-direction: column;
diff --git a/sites/+components/qr_modals.php b/sites/+components/qr_modals.php
index b88ae6b..ab95622 100644
--- a/sites/+components/qr_modals.php
+++ b/sites/+components/qr_modals.php
@@ -34,16 +34,16 @@
rel="noopener noreferrer"
>
-
-
-*/ ?>
-
+ >
+ Copy join link
+
+