fix
This commit is contained in:
parent
1746565f2c
commit
baca218d5e
6 changed files with 34 additions and 12 deletions
|
@ -203,4 +203,21 @@ function expandDesktopImage(image) {
|
|||
document.getElementById("desktop-expanded-image").src = image.replace("200w_d.webp", "giphy.webp");
|
||||
document.getElementById("desktop-expanded-image-link").href = image;
|
||||
document.getElementById("desktop-expanded-image-wrap-link").href=image;
|
||||
};
|
||||
};
|
||||
|
||||
// Send Direct Message
|
||||
const messageModal = document.getElementById('directMessageModal')
|
||||
messageModal.addEventListener('show.bs.modal', function (event) {
|
||||
// Button that triggered the modal
|
||||
const button = event.relatedTarget
|
||||
// Extract info from data-bs-* attributes
|
||||
const recipient = button.getAttribute('data-bs-recipient')
|
||||
// Update the modal's content.
|
||||
const modalTitle = messageModal.querySelector('.modal-title')
|
||||
//
|
||||
messageModal.querySelector('form').action = `/@${recipient}/message`
|
||||
|
||||
modalTitle.textContent = 'New message to ' + recipient
|
||||
})
|
||||
|
||||
// Send coins
|
Loading…
Add table
Add a link
Reference in a new issue