This commit is contained in:
Aevann1 2021-10-06 00:02:54 +02:00
parent 1211c98b35
commit cae2bd4d2e
6 changed files with 10 additions and 47 deletions

View file

@ -24,22 +24,4 @@ report_postModal = function(id) {
xhr.send(form);
}
};
document.getElementById('reportPostModal').addEventListener('hidden.bs.modal', function () {
var button = document.getElementById("reportPostButton");
var beforeModal = document.getElementById("reportPostFormBefore");
var afterModal = document.getElementById("reportPostFormAfter");
button.innerHTML='Report post';
button.disabled= false;
afterModal.classList.add('d-none');
if ( beforeModal.classList.contains('d-none') ) {
beforeModal.classList.remove('d-none');
}
});
};