#363 Non-blocking bookmark creation

This commit is contained in:
SillyLossy
2023-05-22 17:01:16 +03:00
parent 03f2310c8b
commit 23f7fe0667
5 changed files with 63 additions and 63 deletions

View File

@ -11,15 +11,7 @@ function openContextTemplateEditor() {
function copyTemplateParameter(event) {
const text = $(event.target).text();
navigator.clipboard.writeText(text);
const copiedMsg = document.createElement("div");
copiedMsg.classList.add('code-copied');
copiedMsg.innerText = "Copied!";
copiedMsg.style.top = `${event.clientY - 55}px`;
copiedMsg.style.left = `${event.clientX - 55}px`;
document.body.append(copiedMsg);
setTimeout(() => {
document.body.removeChild(copiedMsg);
}, 1000);
toastr.info('Copied!', '', { timeOut: 2000 });
}
jQuery(() => {