From 70e57a2d55f64518c900507762f568045a38df37 Mon Sep 17 00:00:00 2001 From: Jing Xu Date: Thu, 22 Aug 2024 06:39:32 +0900 Subject: [PATCH] bug fix of the copy button logic (#3211) --- _scripts/actions.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/_scripts/actions.js b/_scripts/actions.js index 5669c38d8..2e9662f4a 100644 --- a/_scripts/actions.js +++ b/_scripts/actions.js @@ -1,5 +1,5 @@ $(document).ready(function() { - var svg_copy = ""; + var svg_copy = ""; var svg_done = ""; var search_fields = []; @@ -813,7 +813,7 @@ $(document).ready(function() { }); }); - $("#install-instructions").on("click", "svg", function() { + $("#install-instructions").on("click", ".svg-copy", function() { try { var text = $(this).parent().parent().children("div:first").children("div:first").text(); navigator.clipboard.writeText(text);