yasserrmd commited on
Commit
fcde57c
·
verified ·
1 Parent(s): a1f1d17

Update app/templates/cases.html

Browse files
Files changed (1) hide show
  1. app/templates/cases.html +2 -2
app/templates/cases.html CHANGED
@@ -148,7 +148,7 @@
148
  // Fetch countries for the modal dropdown
149
  const countrySelectModal = document.getElementById(\'modal_country_id_case\');
150
  if (countrySelectModal) {
151
- fetch("{{ url_for(\'get_countries\') }}")
152
  .then(response => response.json())
153
  .then(data => {
154
  data.forEach(country => {
@@ -165,7 +165,7 @@
165
  newCaseFormModal.addEventListener(\'submit\', function(event) {
166
  event.preventDefault();
167
  const formData = new FormData(newCaseFormModal);
168
- fetch("{{ url_for(\'manage_cases\') }}", {
169
  method: \'POST\',
170
  body: formData
171
  })
 
148
  // Fetch countries for the modal dropdown
149
  const countrySelectModal = document.getElementById(\'modal_country_id_case\');
150
  if (countrySelectModal) {
151
+ fetch("{{ url_for('get_countries') }}")
152
  .then(response => response.json())
153
  .then(data => {
154
  data.forEach(country => {
 
165
  newCaseFormModal.addEventListener(\'submit\', function(event) {
166
  event.preventDefault();
167
  const formData = new FormData(newCaseFormModal);
168
+ fetch("{{ url_for('manage_cases') }}", {
169
  method: \'POST\',
170
  body: formData
171
  })