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:
Anders Kaseorg
2024-05-02 18:18:12 -07:00
committed by Tim Abbott
parent eb45eca57b
commit ffd1a80ef4
4 changed files with 0 additions and 66 deletions

View File

@@ -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"],