|
|
|
@ -91,7 +91,7 @@ const tagBody = ({text, type, description}) => element.span({
|
|
|
|
|
title: description
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
function displayQRModal(communityID) {
|
|
|
|
|
function displayQRModal(communityID, pane = 0) {
|
|
|
|
|
const modal = dom.details_modal();
|
|
|
|
|
|
|
|
|
|
if (!modal) {
|
|
|
|
@ -135,7 +135,7 @@ function displayQRModal(communityID) {
|
|
|
|
|
|
|
|
|
|
dom.details_modal_qr_code().src = communityQRCodeURL(communityID);
|
|
|
|
|
|
|
|
|
|
document.getElementById('details-modal-panes').setAttribute('data-pane', 0);
|
|
|
|
|
document.getElementById('details-modal-panes').setAttribute('data-pane', pane);
|
|
|
|
|
|
|
|
|
|
modal.showModal();
|
|
|
|
|
}
|
|
|
|
@ -152,7 +152,7 @@ function addQRModalHandlers() {
|
|
|
|
|
for (const cell of ['.td_qr_code', '.td_description', '.td_language', '.td_users']) {
|
|
|
|
|
row.querySelector(cell).addEventListener(
|
|
|
|
|
'click',
|
|
|
|
|
() => displayQRModal(communityID)
|
|
|
|
|
() => displayQRModal(communityID, cell == '.td_qr_code' ? 1 : 0)
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
row.addEventListener(
|
|
|
|
|