From 3944309b0cf1ceb1f39e94c30b2a657bf053bc28 Mon Sep 17 00:00:00 2001 From: Alex Tselegidis Date: Tue, 8 Dec 2020 09:42:28 +0200 Subject: [PATCH] Execut the revertFunc directly --- assets/js/backend_calendar_default_view.js | 12 ++++++++---- assets/js/backend_calendar_table_view.js | 12 ++++++++---- 2 files changed, 16 insertions(+), 8 deletions(-) diff --git a/assets/js/backend_calendar_default_view.js b/assets/js/backend_calendar_default_view.js index b5cfe138..3929bbad 100755 --- a/assets/js/backend_calendar_default_view.js +++ b/assets/js/backend_calendar_default_view.js @@ -725,8 +725,9 @@ window.BackendCalendarDefaultView = window.BackendCalendarDefaultView || {}; $.post(url, data) .done(function () { $('#notification').hide('blind'); - revertFunc(); }); + + revertFunc(); }; Backend.displayNotification(EALang.appointment_updated, [ @@ -773,8 +774,9 @@ window.BackendCalendarDefaultView = window.BackendCalendarDefaultView || {}; $.post(url, data) .done(function () { $('#notification').hide('blind'); - revertFunc(); }); + + revertFunc(); }; Backend.displayNotification(EALang.unavailable_updated, [ @@ -893,8 +895,9 @@ window.BackendCalendarDefaultView = window.BackendCalendarDefaultView || {}; $.post(url, data) .done(function () { $('#notification').hide('blind'); - revertFunc(); }); + + revertFunc(); }; Backend.displayNotification(EALang.appointment_updated, [ @@ -942,8 +945,9 @@ window.BackendCalendarDefaultView = window.BackendCalendarDefaultView || {}; $.post(url, data) .done(function () { $('#notification').hide('blind'); - revertFunc(); }); + + revertFunc(); }; Backend.displayNotification(EALang.unavailable_updated, [ diff --git a/assets/js/backend_calendar_table_view.js b/assets/js/backend_calendar_table_view.js index fcb75b65..f0a4818f 100755 --- a/assets/js/backend_calendar_table_view.js +++ b/assets/js/backend_calendar_table_view.js @@ -1458,8 +1458,9 @@ window.BackendCalendarTableView = window.BackendCalendarTableView || {}; $.post(url, data) .done(function () { $('#notification').hide('blind'); - revertFunc(); }); + + revertFunc(); }; Backend.displayNotification(EALang.appointment_updated, [ @@ -1506,8 +1507,9 @@ window.BackendCalendarTableView = window.BackendCalendarTableView || {}; $.post(url, data) .done(function () { $('#notification').hide('blind'); - revertFunc(); }); + + revertFunc(); }; Backend.displayNotification(EALang.unavailable_updated, [ @@ -1595,8 +1597,9 @@ window.BackendCalendarTableView = window.BackendCalendarTableView || {}; $.post(url, data) .done(function () { $('#notification').hide('blind'); - revertFunc(); }); + + revertFunc(); }; Backend.displayNotification(EALang.appointment_updated, [ @@ -1645,8 +1648,9 @@ window.BackendCalendarTableView = window.BackendCalendarTableView || {}; $.post(url, data) .done(function () { $('#notification').hide('blind'); - revertFunc(); }); + + revertFunc(); }; Backend.displayNotification(EALang.unavailable_updated, [