From ce56c96cddf53b75ceb372b5e0799bb2458fe8db Mon Sep 17 00:00:00 2001 From: root Date: Fri, 29 May 2026 00:18:12 -0400 Subject: [PATCH] fix paste button for comment review spring --- app/Views/grading/comments.php | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/app/Views/grading/comments.php b/app/Views/grading/comments.php index f73ea57..dd5dd19 100644 --- a/app/Views/grading/comments.php +++ b/app/Views/grading/comments.php @@ -177,7 +177,10 @@ $lockAttr = $scoresLocked ? 'disabled' : ''; + + -
+
    @@ -474,18 +483,9 @@ $lockAttr = $scoresLocked ? 'disabled' : ''; }); }; - document.querySelectorAll('.copy-ptap-btn').forEach(button => { - button.addEventListener('click', function() { - const source = document.querySelector(this.dataset.copySource || ''); - const target = document.querySelector(this.dataset.copyTarget || ''); - if (!source || !target) return; - target.value = source.value; - target.style.height = 'auto'; - target.style.height = (target.scrollHeight) + 'px'; - target.focus(); - }); - }); + wireCopyButtons('.copy-ptap-btn'); wireCopyButtons('.copy-midterm-btn'); + wireCopyButtons('.copy-final-btn'); }); endSection() ?>