View | Details | Raw Unified | Return to bug 36275
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/copy-to-clipboard-button.inc (-1 / +3 lines)
Line 1 Link Here
1
<button type="button" class="btn btn-xs btn-primary" data-copy-to-clipboard data-value="[% copy_to_clipboard_value | html %]"> <i class="fa-solid fa-clipboard"></i> Copy to clipboard </button>
1
<button type="button" class="btn btn-xs btn-primary" data-bs-placement="right" data-bs-delay='{"show":0,"hide":2000}' data-copy-to-clipboard data-value="[% copy_to_clipboard_value | html %]">
2
    <i class="fa-solid fa-clipboard"></i> Copy to clipboard
3
</button>
(-)a/koha-tmpl/intranet-tmpl/prog/js/copyToClipboard.js (-1 / +8 lines)
Lines 14-19 Link Here
14
            }
14
            }
15
15
16
            navigator.clipboard.writeText(value);
16
            navigator.clipboard.writeText(value);
17
18
            target.title = __("Copied to clipboard");
19
            const tooltip = bootstrap.Tooltip.getOrCreateInstance(target);
20
            tooltip.show();
21
            setTimeout(() => {
22
                tooltip.dispose();
23
                target.title = "";
24
            }, 3000);
17
        };
25
        };
18
26
19
        copyToClipboardButtons.forEach(copyToClipboardButton => {
27
        copyToClipboardButtons.forEach(copyToClipboardButton => {
20
- 

Return to bug 36275