|
|
|
@ -77,8 +77,8 @@ function hideQRModal(communityID) {
|
|
|
|
|
function createJoinLinkButtons() {
|
|
|
|
|
const join_URLs = dom.join_urls();
|
|
|
|
|
Array.from(join_URLs).forEach((td_url) => {
|
|
|
|
|
const a_href = td_url.querySelector('a'); // get first (only) <a> element
|
|
|
|
|
const join_link = a_href.getAttribute("href"); // get link
|
|
|
|
|
// Data attributes are more idiomatic and harder to change by accident in the DOM.
|
|
|
|
|
const join_link = td_url.getAttribute('data-url');
|
|
|
|
|
td_url.append(transformJoinURL(join_link)); // add interactive content
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
@ -289,3 +289,4 @@ Object.assign(window, {
|
|
|
|
|
onLoad, sortTable, displayQRModal,
|
|
|
|
|
hideQRModal, copyToClipboard
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|