Actualiser js/admin.js
This commit is contained in:
@@ -74,13 +74,10 @@ function initEventListeners() {
|
||||
else handleVideothequeUpload(e.target);
|
||||
});
|
||||
}
|
||||
|
||||
const searchInput = document.getElementById('search-input');
|
||||
if (searchInput) searchInput.addEventListener('input', () => { currentPage = 1; renderAdminTable(); });
|
||||
|
||||
const selectAll = document.getElementById('select-all-checkbox');
|
||||
if (selectAll) selectAll.addEventListener('change', (e) => toggleSelectAll(e.target));
|
||||
|
||||
document.addEventListener('click', (e) => {
|
||||
if (e.target.classList.contains('modal-close') || e.target.closest('.modal-close')) {
|
||||
const overlay = e.target.closest('.overlay');
|
||||
@@ -88,7 +85,6 @@ function initEventListeners() {
|
||||
}
|
||||
if (e.target.classList.contains('overlay')) e.target.classList.remove('open');
|
||||
});
|
||||
|
||||
const physicalFilter = document.getElementById('admin-physical-checkbox');
|
||||
if (physicalFilter) physicalFilter.addEventListener('change', () => { currentPage = 1; renderAdminTable(); });
|
||||
}
|
||||
@@ -266,7 +262,6 @@ function switchAdminTab(tabName) {
|
||||
if (wrapper) wrapper.style.display = (tabName === 'videotheque') ? 'none' : 'flex';
|
||||
document.querySelectorAll('.tab-btn').forEach(b => b.classList.remove('active'));
|
||||
document.getElementById(`btn-tab-${tabName}`).classList.add('active');
|
||||
|
||||
updateImportInterface();
|
||||
toggleFormFields();
|
||||
renderAdminTable();
|
||||
|
||||
Reference in New Issue
Block a user