Sửa chữa modal Lấy link chia sẻ
This commit is contained in:
+1
-1
@@ -398,7 +398,7 @@
|
|||||||
|
|
||||||
<div class="action-buttons" style="margin-top: 25px;">
|
<div class="action-buttons" style="margin-top: 25px;">
|
||||||
<button onclick="copySharedLink()" class="edit-btn-large" style="background: #007bff; width: 100%;">
|
<button onclick="copySharedLink()" class="edit-btn-large" style="background: #007bff; width: 100%;">
|
||||||
📋 Sao chép liên kết & Đóng
|
📋 Sao chép liên kết
|
||||||
</button>
|
</button>
|
||||||
<button onclick="closeShareLinkModal()" class="edit-btn-large" style="background: #444; width: 100%; margin-top: 10px;">
|
<button onclick="closeShareLinkModal()" class="edit-btn-large" style="background: #444; width: 100%; margin-top: 10px;">
|
||||||
Đóng
|
Đóng
|
||||||
|
|||||||
@@ -2628,7 +2628,13 @@ window.removeShared = function(type, id) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
window.closeShareMemberModal = () => document.getElementById('share-member-modal').style.display = 'none';
|
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
|
* Copy link chia sẻ và đóng modal
|
||||||
@@ -2637,8 +2643,8 @@ window.copySharedLink = function() {
|
|||||||
const linkInput = document.getElementById('shared-link-input');
|
const linkInput = document.getElementById('shared-link-input');
|
||||||
linkInput.select();
|
linkInput.select();
|
||||||
navigator.clipboard.writeText(linkInput.value).then(() => {
|
navigator.clipboard.writeText(linkInput.value).then(() => {
|
||||||
showSuccessModal("Đã sao chép liên kết vào bộ nhớ!");
|
|
||||||
closeShareLinkModal();
|
closeShareLinkModal();
|
||||||
|
showSuccessModal("Đã sao chép liên kết vào bộ nhớ!");
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user