fix(admin): expose updateCharCounter for Q-modal oninput handler

Phase 2 review caught this: updateCharCounter was defined inside

questions.js IIFE but never exposed via window.X; admin.html:1672

calls it via oninput, would throw ReferenceError on every keypress.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Maxim Dolgolyov
2026-05-16 22:58:59 +03:00
parent 8a815ca3eb
commit fa67ad1294
+1
View File
@@ -525,6 +525,7 @@
window.handleImageFileSelect = handleImageFileSelect;
window.importCSVFile = importCSVFile;
window.downloadCSVTemplate = downloadCSVTemplate;
window.updateCharCounter = updateCharCounter;
window.AdminSections = window.AdminSections || {};
window.AdminSections.questions = {
init: async () => { if (inited) return; inited = true; await load(); },