mirror of
https://github.com/zulip/zulip.git
synced 2025-11-05 22:43:42 +00:00
common: Remove copy_data_attribute_value.
Commit 90d0531e20 (#23721) removed
envelope-link and data-admin-emails.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
eb45eca57b
commit
ffd1a80ef4
@@ -25,18 +25,6 @@ export function phrase_match(query: string, phrase: string): boolean {
|
||||
return false;
|
||||
}
|
||||
|
||||
export function copy_data_attribute_value($elem: JQuery, key: string): void {
|
||||
// function to copy the value of data-key
|
||||
// attribute of the element to clipboard
|
||||
const $temp = $(document.createElement("input"));
|
||||
$("body").append($temp);
|
||||
$temp.val($elem.data(key)).trigger("select");
|
||||
document.execCommand("copy");
|
||||
$temp.remove();
|
||||
$elem.fadeOut(250);
|
||||
$elem.fadeIn(1000);
|
||||
}
|
||||
|
||||
const keys_map = new Map([
|
||||
["Backspace", "Delete"],
|
||||
["Enter", "Return"],
|
||||
|
||||
Reference in New Issue
Block a user