изменил дизайн выпадающих списков

This commit is contained in:
Zuev
2026-03-27 16:08:44 +03:00
parent e015758caf
commit bfdcb58c7d
10 changed files with 684 additions and 154 deletions

View File

@@ -1,4 +1,5 @@
// Settings page main.js
import { startDropdownAutoObserver, initAllCustomDropdowns } from '../../js/dropdown.js';
// Auth check
const token = localStorage.getItem('token');
@@ -7,6 +8,12 @@ if (!token || role !== 'ADMIN') {
window.location.href = '/';
}
// Global initialization for Custom Selects
document.addEventListener('DOMContentLoaded', () => {
initAllCustomDropdowns(document.body);
startDropdownAutoObserver();
});
// Configuration
const ROUTES = {
general: { title: 'Общие настройки', file: 'views/general.html' },