From 1d514c5cbc20c3274075962e44f7c52436f9801f Mon Sep 17 00:00:00 2001 From: Aida Jafarbigloo Date: Wed, 30 Oct 2024 13:26:11 +0100 Subject: [PATCH] Fix a bug --- static/foundation/js/vendor/foundation.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/foundation/js/vendor/foundation.js b/static/foundation/js/vendor/foundation.js index 109dd2d..2cbf380 100644 --- a/static/foundation/js/vendor/foundation.js +++ b/static/foundation/js/vendor/foundation.js @@ -319,7 +319,7 @@ copyBtn.addEventListener('click', function(event) { event.preventDefault(); // Prevent form submission var rowToDelete = event.target.closest('tr'); deleteCallback(rowToDelete); - } else if (event.target.tagName === 'BUTTON' && event.target.textContent === 'Copy') { + } else if (event.target.tagName === 'BUTTON' && event.target.textContent === 'Add to Authors') { event.preventDefault(); var rowToCopy = event.target.closest('tr'); copyCallback(rowToCopy);