mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-12 19:12:18 +03:00
Move the default option to the beginning of the category dropdown
This commit is contained in:
parent
fec1b1be3e
commit
8c8aaaa5e7
1 changed files with 2 additions and 2 deletions
|
@ -407,11 +407,11 @@ App.Pages.Services = (function () {
|
||||||
App.Http.ServiceCategories.search('', 999).then((response) => {
|
App.Http.ServiceCategories.search('', 999).then((response) => {
|
||||||
$serviceCategoryId.empty();
|
$serviceCategoryId.empty();
|
||||||
|
|
||||||
|
$serviceCategoryId.append(new Option('', '')).val('');
|
||||||
|
|
||||||
response.forEach((serviceCategory) => {
|
response.forEach((serviceCategory) => {
|
||||||
$serviceCategoryId.append(new Option(serviceCategory.name, serviceCategory.id));
|
$serviceCategoryId.append(new Option(serviceCategory.name, serviceCategory.id));
|
||||||
});
|
});
|
||||||
|
|
||||||
$serviceCategoryId.append(new Option('', '')).val('');
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue