Corrected method name typo

This commit is contained in:
Alex Tselegidis 2020-09-30 14:35:09 +03:00
parent 45c8a82d3f
commit 5e0ef2acc1
4 changed files with 4 additions and 3 deletions

View file

@ -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 = {

View file

@ -199,6 +199,7 @@ window.BackendUsers = window.BackendUsers || {};
helper.filter(''); helper.filter('');
helper.bindEventHandlers(); helper.bindEventHandlers();
$('.filter-key').val(''); $('.filter-key').val('');
Backend.placeFooterToBottom();
}); });
/** /**

View file

@ -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()
} }

View file

@ -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) {