mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
advanced search possible
This commit is contained in:
parent
eaf9f72fdd
commit
21d5f974eb
@ -126,7 +126,15 @@
|
||||
return string.charAt(0).toUpperCase() + string.slice(1);
|
||||
}
|
||||
|
||||
const searchFragments = location.hash.substring(1).split('%20')
|
||||
let searchFragments = location.hash.substring(1).split('%20')
|
||||
searchFragments = searchFragments.filter((el) => el.startsWith("firstname") || el.startsWith("lastname"))
|
||||
searchFragments = searchFragments.map((el) => {
|
||||
if (el.startsWith("firstname")) {
|
||||
return el.slice(10)
|
||||
} else {
|
||||
return el.slice(9)
|
||||
}
|
||||
})
|
||||
|
||||
if (searchFragments) {
|
||||
const suggestions = searchFragments.map((el) => `<p class="name badge bg-person" style="cursor: pointer; margin-right: 5px;">${capitalizeFirstLetter(el)}</p>`)
|
||||
|
Loading…
x
Reference in New Issue
Block a user