fix(firebase): fix save fcm token logic

This commit is contained in:
sankalp committed 2025-04-22 16:33:51 +05:45
1 parent 929faab1fa
commit 8f0ce113b4
6 files changed
+309 -204

No files matched your search

+22
View File
@@ -0,0 +1,22 @@
// Teacher Modals JavaScript
document.addEventListener('DOMContentLoaded', function() {
console.log('Teacher modals initialized');
// Initialize any modals that need to be shown
const modals = document.querySelectorAll('.modal');
modals.forEach(modal => {
if (modal.classList.contains('show')) {
const modalInstance = new bootstrap.Modal(modal);
modalInstance.show();
}
});
// Handle modal close events
document.querySelectorAll('.modal').forEach(modal => {
modal.addEventListener('hidden.bs.modal', function () {
// Clean up any form data or reset states
const forms = modal.querySelectorAll('form');
forms.forEach(form => form.reset());
});
});
});