This commit is contained in:
kek7198 2022-01-02 21:02:21 -06:00
parent 1746565f2c
commit baca218d5e
6 changed files with 34 additions and 12 deletions

View file

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