mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-08 17:12:25 +03:00
Corrected method name typo
This commit is contained in:
parent
45c8a82d3f
commit
5e0ef2acc1
4 changed files with 4 additions and 3 deletions
|
@ -97,7 +97,7 @@ window.BackendCalendarApi = window.BackendCalendarApi || {};
|
||||||
* @param {Function} successCallback The ajax success callback function.
|
* @param {Function} successCallback The ajax success callback function.
|
||||||
* @param {Function} errorCallback The ajax failure callback function.
|
* @param {Function} errorCallback The ajax failure callback function.
|
||||||
*/
|
*/
|
||||||
exports.saveCustomavailabilityperiod = function (customAvailabilityPeriods, successCallback, errorCallback) {
|
exports.saveCustomAvailabilityPeriod = function (customAvailabilityPeriods, successCallback, errorCallback) {
|
||||||
var url = GlobalVariables.baseUrl + '/index.php/backend_api/ajax_save_custom_availability_period';
|
var url = GlobalVariables.baseUrl + '/index.php/backend_api/ajax_save_custom_availability_period';
|
||||||
|
|
||||||
var data = {
|
var data = {
|
||||||
|
|
|
@ -199,6 +199,7 @@ window.BackendUsers = window.BackendUsers || {};
|
||||||
helper.filter('');
|
helper.filter('');
|
||||||
helper.bindEventHandlers();
|
helper.bindEventHandlers();
|
||||||
$('.filter-key').val('');
|
$('.filter-key').val('');
|
||||||
|
Backend.placeFooterToBottom();
|
||||||
});
|
});
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -154,7 +154,7 @@
|
||||||
settings: {
|
settings: {
|
||||||
username: $('#provider-username').val(),
|
username: $('#provider-username').val(),
|
||||||
working_plan: JSON.stringify(BackendUsers.wp.get()),
|
working_plan: JSON.stringify(BackendUsers.wp.get()),
|
||||||
custom_availability_periods: JSON.stringify(BackendUsers.wp.getCustomavailabilityperiods()),
|
custom_availability_periods: JSON.stringify(BackendUsers.wp.getCustomAvailabilityPeriods()),
|
||||||
notifications: $('#provider-notifications').prop('checked'),
|
notifications: $('#provider-notifications').prop('checked'),
|
||||||
calendar_view: $('#provider-calendar-view').val()
|
calendar_view: $('#provider-calendar-view').val()
|
||||||
}
|
}
|
||||||
|
|
|
@ -810,7 +810,7 @@
|
||||||
*
|
*
|
||||||
* @return {Object} Returns the custom availability periods settings object.
|
* @return {Object} Returns the custom availability periods settings object.
|
||||||
*/
|
*/
|
||||||
WorkingPlan.prototype.getCustomavailabilityperiods = function () {
|
WorkingPlan.prototype.getCustomAvailabilityPeriods = function () {
|
||||||
var customAvailabilityPeriods = {};
|
var customAvailabilityPeriods = {};
|
||||||
$('.custom-availability-periods tbody tr').each(function (index, tr) {
|
$('.custom-availability-periods tbody tr').each(function (index, tr) {
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue