huge updates

This commit is contained in:
sankalp committed 2025-04-15 04:20:26 +05:45
1 parent 2912191091
commit 8507d06ccf
82 files changed
+14911 -4509

No files matched your search

+10 -1
View File
@@ -146,8 +146,17 @@ document.addEventListener('DOMContentLoaded', function() {
method: 'POST',
body: formData,
credentials: 'same-origin',
headers: {
'X-CSRFToken': document.querySelector('[name=csrfmiddlewaretoken]').value,
'X-Requested-With': 'XMLHttpRequest'
}
})
.then(response => {
if (!response.ok) {
throw new Error(`HTTP error! Status: ${response.status}`);
}
return response.json();
})
.then(response => response.json())
.then(data => {
if (responseDiv) {
responseDiv.style.display = 'block';