mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-13 03:23:18 +03:00
More formatting changes
This commit is contained in:
parent
b2d2a5a1ce
commit
7c082689ea
7 changed files with 22 additions and 22 deletions
|
@ -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');
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue