feat(feedback): add prev-date endpoint, resident last_date, works display, mark stripe update
This commit is contained in:
+10
-1
@@ -2304,7 +2304,16 @@ document.getElementById('linkCopyBtn').addEventListener('click', copyLink);
|
||||
document.querySelectorAll('#viewToggle button').forEach(b => {
|
||||
b.classList.toggle('active', b.dataset.view === view);
|
||||
});
|
||||
setDefaultDates();
|
||||
const qs = new URLSearchParams(location.search);
|
||||
const qsStudent = (qs.get('student') || '').trim();
|
||||
const qsDate = /^\d{4}-\d{2}-\d{2}$/.test(qs.get('date') || '') ? qs.get('date') : '';
|
||||
if (qsDate) {
|
||||
document.getElementById('dateFrom').value = qsDate;
|
||||
document.getElementById('dateTo').value = qsDate;
|
||||
} else {
|
||||
setDefaultDates();
|
||||
}
|
||||
if (qsStudent) document.getElementById('studentFilter').value = qsStudent;
|
||||
loadGroupOptions();
|
||||
loadModuleOptions();
|
||||
loadStudentOptions();
|
||||
|
||||
Reference in New Issue
Block a user