bugfix/162-create_card_modal #163

Merged
philipp merged 4 commits from bugfix/162-create_card_modal into dev 2023-03-15 12:15:24 +00:00
Showing only changes of commit e8a0ad6647 - Show all commits

View File

@ -12,17 +12,22 @@
export let modal_open;
export let current_cards;
const getRunnerLabel = (option) =>
{
const getRunnerLabel = (option) => {
if (option.middlename) {
return option.firstname + " " + option.middlename + " " + option.lastname;
}
return option.firstname + " " + option.lastname;
}
};
const filterRunners = (label, filterText, option) =>
const filterRunners = (label, filterText, option) => {
if (filterText.startsWith("#")) {
return option.value.id == parseInt(filterText.replace("#",""))
}
return (
label.toLowerCase().includes(filterText.toLowerCase()) ||
option.value.toString().startsWith(filterText.toLowerCase());
option.value.toString().startsWith(filterText.toLowerCase())
);
};
function focus(el) {
el.focus();
}