From 5e0ef2acc1a59b633187ceb467c6ac91e892d62f Mon Sep 17 00:00:00 2001 From: Alex Tselegidis Date: Wed, 30 Sep 2020 14:35:09 +0300 Subject: [PATCH] Corrected method name typo --- assets/js/backend_calendar_api.js | 2 +- assets/js/backend_users.js | 1 + assets/js/backend_users_providers.js | 2 +- assets/js/working_plan.js | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/assets/js/backend_calendar_api.js b/assets/js/backend_calendar_api.js index 133a2dd3..b9b79236 100755 --- a/assets/js/backend_calendar_api.js +++ b/assets/js/backend_calendar_api.js @@ -97,7 +97,7 @@ window.BackendCalendarApi = window.BackendCalendarApi || {}; * @param {Function} successCallback The ajax success 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 data = { diff --git a/assets/js/backend_users.js b/assets/js/backend_users.js index de236c80..44b97b52 100644 --- a/assets/js/backend_users.js +++ b/assets/js/backend_users.js @@ -199,6 +199,7 @@ window.BackendUsers = window.BackendUsers || {}; helper.filter(''); helper.bindEventHandlers(); $('.filter-key').val(''); + Backend.placeFooterToBottom(); }); /** diff --git a/assets/js/backend_users_providers.js b/assets/js/backend_users_providers.js index 414adb92..27254ed5 100755 --- a/assets/js/backend_users_providers.js +++ b/assets/js/backend_users_providers.js @@ -154,7 +154,7 @@ settings: { username: $('#provider-username').val(), 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'), calendar_view: $('#provider-calendar-view').val() } diff --git a/assets/js/working_plan.js b/assets/js/working_plan.js index ecb7c56f..277299c4 100755 --- a/assets/js/working_plan.js +++ b/assets/js/working_plan.js @@ -810,7 +810,7 @@ * * @return {Object} Returns the custom availability periods settings object. */ - WorkingPlan.prototype.getCustomavailabilityperiods = function () { + WorkingPlan.prototype.getCustomAvailabilityPeriods = function () { var customAvailabilityPeriods = {}; $('.custom-availability-periods tbody tr').each(function (index, tr) {