Room name goes to modal & copy button in modal

dev
gravel 3 years ago
parent a8051aa8a3
commit dc2b0e9981
Signed by: gravel
GPG Key ID: C0538F3C906B308F

@ -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',

@ -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;

@ -34,16 +34,16 @@
rel="noopener noreferrer"
></a>
</p>
<?php /*
<p>
<button
id="details-modal-copy-button"
data-hydrate-with="join_link:data-href"
title="Copy join link"
>Copy link</button>
</p>
*/ ?>
<p>
>
Copy join link
</button>
<button
id="details-modal-copy-staff-id"
data-hydrate-with="staff:data-staff"

Loading…
Cancel
Save