mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-22 07:52:29 +03:00
Removed unnecessary condition
This commit is contained in:
parent
cf7bad9f19
commit
78ab4ac3d2
1 changed files with 2 additions and 4 deletions
|
@ -1565,12 +1565,10 @@ window.BackendCalendarDefaultView = window.BackendCalendarDefaultView || {};
|
|||
$('#select-filter-item').prop('disabled', true);
|
||||
}
|
||||
|
||||
if (GlobalVariables.user.role_slug === Backend.DB_SLUG_SECRETARY) {
|
||||
$('#select-filter-item optgroup:eq(1)').remove();
|
||||
}
|
||||
|
||||
if (GlobalVariables.user.role_slug === Backend.DB_SLUG_SECRETARY) {
|
||||
// Remove the providers that are not connected to the secretary.
|
||||
$('#select-filter-item optgroup:eq(1)').remove();
|
||||
|
||||
$('#select-filter-item option[type="provider"]').each(function (index, option) {
|
||||
var provider = GlobalVariables.secretaryProviders.find(function (secretaryProviderId) {
|
||||
return Number($(option).val()) === Number(secretaryProviderId);
|
||||
|
|
Loading…
Reference in a new issue