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');
});
= $this->endSection() ?>
|