forked from mirrors/easyappointments
Execut the revertFunc directly
This commit is contained in:
parent
0e9758372d
commit
3944309b0c
2 changed files with 16 additions and 8 deletions
|
@ -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, [
|
||||
|
|
|
@ -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, [
|
||||
|
|
Loading…
Reference in a new issue