fix is_active student flag and apply it in all pages
Deploy to Shared Hosting / Shared hosting deploy (push) Failing after 48s
Tests / PHPUnit (push) Successful in 1m17s

This commit is contained in:
root
2026-08-20 12:59:59 -04:00
parent 0a31aa1393
commit bfa343b69f
57 changed files with 820 additions and 240 deletions
+5 -1
View File
@@ -81,7 +81,9 @@
btn.type = 'button';
btn.className = 'btn btn-link btn-sm ps-0';
btn.textContent = 'Apply';
btn.disabled = !!(textarea.disabled || textarea.readOnly);
btn.addEventListener('click', () => {
if (textarea.disabled || textarea.readOnly) return;
textarea.value = applyMatches(textarea.value, [match]);
resize(textarea);
textarea.dispatchEvent(new Event('input', { bubbles: true }));
@@ -97,6 +99,7 @@
const proofreadField = async (textarea) => {
if (!textarea) return { ok: false };
if (textarea.disabled || textarea.readOnly) return { ok: true, skipped: true };
const targetId = textarea.id || textarea.name || '';
const text = textarea.value || '';
@@ -159,7 +162,8 @@
const proofreadAll = async () => {
const btn = document.getElementById('proofreadAllBtn');
const summary = document.getElementById('proofreadAllStatus');
const fields = Array.from(document.querySelectorAll('textarea.review-field'));
const fields = Array.from(document.querySelectorAll('textarea.review-field:not(:disabled)'))
.filter((field) => !field.readOnly);
if (!fields.length) return;
if (btn) btn.disabled = true;