Execut the revertFunc directly

This commit is contained in:
Alex Tselegidis 2020-12-08 09:42:28 +02:00
parent 0e9758372d
commit 3944309b0c
2 changed files with 16 additions and 8 deletions

View file

@ -725,8 +725,9 @@ window.BackendCalendarDefaultView = window.BackendCalendarDefaultView || {};
$.post(url, data) $.post(url, data)
.done(function () { .done(function () {
$('#notification').hide('blind'); $('#notification').hide('blind');
revertFunc();
}); });
revertFunc();
}; };
Backend.displayNotification(EALang.appointment_updated, [ Backend.displayNotification(EALang.appointment_updated, [
@ -773,8 +774,9 @@ window.BackendCalendarDefaultView = window.BackendCalendarDefaultView || {};
$.post(url, data) $.post(url, data)
.done(function () { .done(function () {
$('#notification').hide('blind'); $('#notification').hide('blind');
revertFunc();
}); });
revertFunc();
}; };
Backend.displayNotification(EALang.unavailable_updated, [ Backend.displayNotification(EALang.unavailable_updated, [
@ -893,8 +895,9 @@ window.BackendCalendarDefaultView = window.BackendCalendarDefaultView || {};
$.post(url, data) $.post(url, data)
.done(function () { .done(function () {
$('#notification').hide('blind'); $('#notification').hide('blind');
revertFunc();
}); });
revertFunc();
}; };
Backend.displayNotification(EALang.appointment_updated, [ Backend.displayNotification(EALang.appointment_updated, [
@ -942,8 +945,9 @@ window.BackendCalendarDefaultView = window.BackendCalendarDefaultView || {};
$.post(url, data) $.post(url, data)
.done(function () { .done(function () {
$('#notification').hide('blind'); $('#notification').hide('blind');
revertFunc();
}); });
revertFunc();
}; };
Backend.displayNotification(EALang.unavailable_updated, [ Backend.displayNotification(EALang.unavailable_updated, [

View file

@ -1458,8 +1458,9 @@ window.BackendCalendarTableView = window.BackendCalendarTableView || {};
$.post(url, data) $.post(url, data)
.done(function () { .done(function () {
$('#notification').hide('blind'); $('#notification').hide('blind');
revertFunc();
}); });
revertFunc();
}; };
Backend.displayNotification(EALang.appointment_updated, [ Backend.displayNotification(EALang.appointment_updated, [
@ -1506,8 +1507,9 @@ window.BackendCalendarTableView = window.BackendCalendarTableView || {};
$.post(url, data) $.post(url, data)
.done(function () { .done(function () {
$('#notification').hide('blind'); $('#notification').hide('blind');
revertFunc();
}); });
revertFunc();
}; };
Backend.displayNotification(EALang.unavailable_updated, [ Backend.displayNotification(EALang.unavailable_updated, [
@ -1595,8 +1597,9 @@ window.BackendCalendarTableView = window.BackendCalendarTableView || {};
$.post(url, data) $.post(url, data)
.done(function () { .done(function () {
$('#notification').hide('blind'); $('#notification').hide('blind');
revertFunc();
}); });
revertFunc();
}; };
Backend.displayNotification(EALang.appointment_updated, [ Backend.displayNotification(EALang.appointment_updated, [
@ -1645,8 +1648,9 @@ window.BackendCalendarTableView = window.BackendCalendarTableView || {};
$.post(url, data) $.post(url, data)
.done(function () { .done(function () {
$('#notification').hide('blind'); $('#notification').hide('blind');
revertFunc();
}); });
revertFunc();
}; };
Backend.displayNotification(EALang.unavailable_updated, [ Backend.displayNotification(EALang.unavailable_updated, [