Actualiser js/admin.js
This commit is contained in:
@@ -80,14 +80,6 @@ document.addEventListener('DOMContentLoaded', () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
function initEventListeners() {
|
function initEventListeners() {
|
||||||
const physicalCheckbox = document.getElementById('admin-physical-checkbox');
|
|
||||||
if (physicalCheckbox) {
|
|
||||||
physicalCheckbox.addEventListener('change', (e) => {
|
|
||||||
adminPhysicalOnlyFilter = e.target.checked;
|
|
||||||
currentPage = 1;
|
|
||||||
renderAdminTable();
|
|
||||||
});
|
|
||||||
}
|
|
||||||
const filmForm = document.getElementById('film-form');
|
const filmForm = document.getElementById('film-form');
|
||||||
if (filmForm) filmForm.addEventListener('submit', saveFilmForm);
|
if (filmForm) filmForm.addEventListener('submit', saveFilmForm);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user