added multi-select for customer, project and activity (#1557)

This commit is contained in:
Kevin Papst
2020-03-16 14:06:26 +01:00
committed by GitHub
parent 6eeb01ad48
commit 4b1cfa5840
74 changed files with 1262 additions and 754 deletions

View File

@@ -63,7 +63,7 @@ export default class KimaiFormSelect extends KimaiPlugin {
});
// If the option element contains all terms, return it
if(foundAll) {
if (foundAll) {
return data;
}
@@ -157,10 +157,10 @@ export default class KimaiFormSelect extends KimaiPlugin {
// if available, re-select the previous selected option (mostly usable for global activities)
select.val(selectedValue);
// if we don't trigger the change, the other selects won't be resetted
// if we don't trigger the change, the other selects won't reset
select.trigger('change');
// if the beta test kimai.theme.select_type is active, this will tell the selects to refresh
// if select2 is active, this will tell the select to refresh
if (select.hasClass('selectpicker')) {
select.trigger('change.select2');
}