Sửa chữa modal Lấy link chia sẻ
This commit is contained in:
@@ -2628,7 +2628,13 @@ window.removeShared = function(type, id) {
|
||||
};
|
||||
|
||||
window.closeShareMemberModal = () => document.getElementById('share-member-modal').style.display = 'none';
|
||||
window.closeShareLinkModal = () => document.getElementById('share-link-modal').style.display = 'none';
|
||||
window.closeShareLinkModal = function() {
|
||||
const modal = document.getElementById('share-link-modal');
|
||||
if (modal) {
|
||||
modal.style.display = 'none';
|
||||
modal.removeAttribute('data-original-display');
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* Copy link chia sẻ và đóng modal
|
||||
@@ -2637,8 +2643,8 @@ window.copySharedLink = function() {
|
||||
const linkInput = document.getElementById('shared-link-input');
|
||||
linkInput.select();
|
||||
navigator.clipboard.writeText(linkInput.value).then(() => {
|
||||
showSuccessModal("Đã sao chép liên kết vào bộ nhớ!");
|
||||
closeShareLinkModal();
|
||||
showSuccessModal("Đã sao chép liên kết vào bộ nhớ!");
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user