11 lines
292 B
JavaScript
11 lines
292 B
JavaScript
'use strict';
|
|
|
|
function initializeDashboardSort() {
|
|
const dashboardSorter = document.getElementById('dashboard_sort');
|
|
|
|
if (dashboardSorter) {
|
|
dashboardSorter.addEventListener('change', (event) => {
|
|
window.location.assign(`/dashboard?sort=${event.target.value}`);
|
|
});
|
|
}
|
|
}
|