mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-22 16:02:54 +03:00
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)
|
$.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, [
|
||||||
|
|
|
@ -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, [
|
||||||
|
|
Loading…
Reference in a new issue