tryiong to fix the details page

This commit is contained in:
2025-09-29 13:40:09 -07:00
parent fe76ada2dd
commit 79da5597d3
2 changed files with 6 additions and 2 deletions

View File

@@ -389,7 +389,8 @@ function createWeeklyMenu() {
if (data.status === 'success') {
bootstrap.Modal.getInstance(document.getElementById('createWeeklyMenuModal')).hide();
form.reset();
loadWeeklyMenus();
// Reload the page to get updated data
location.reload();
} else {
alert('Error creating weekly menu: ' + data.message);
}
@@ -492,7 +493,8 @@ function deleteWeeklyMenu(weeklyMenuId) {
.then(response => response.json())
.then(data => {
if (data.status === 'success') {
loadWeeklyMenus();
// Reload the page to get updated data
location.reload();
} else {
alert('Error deleting weekly menu: ' + data.message);
}