huge update

This commit is contained in:
sankalp committed 2025-04-20 17:46:30 +05:45
1 parent 8072284990
commit f2c72885a6
123 files changed
+25119 -4984

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';