More formatting changes

This commit is contained in:
Alex Tselegidis 2021-10-28 13:30:39 +02:00
parent b2d2a5a1ce
commit 7c082689ea
7 changed files with 22 additions and 22 deletions

View file

@ -287,7 +287,7 @@ window.BackendSettings = window.BackendSettings || {};
$.post(url, data)
.done(function (response) {
if (response === 'false') {
if (response.is_valid === 'false') {
$input.closest('.form-group').addClass('has-error');
Backend.displayNotification(EALang.username_already_exists);
$input.attr('already-exists', 'true');

View file

@ -69,14 +69,14 @@ window.FrontendBookApi = window.FrontendBookApi || {};
$.post(url, data)
.done(function (response) {
// The response contains the available hours for the selected provider and
// service. Fill the available hours div with response data.
// The response contains the available hours for the selected provider and service. Fill the available
// hours div with response data.
if (response.length > 0) {
var providerId = $('#select-provider').val();
if (providerId === 'any-provider') {
for (var availableProvider of GlobalVariables.availableProviders) {
if (availableProvider.services.indexOf(serviceId) !== -1) {
if (availableProvider.services.indexOf(Number(serviceId)) !== -1) {
providerId = availableProvider.id; // Use first available provider.
break;
}