Skip to content

Fix name search #131

Merged
merged 2 commits into from
Feb 12, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion locale/de/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ msgstr "Sonderfunktion"
#: mpicms/templates/wagtailusers/users/list.html:8
#: mpicms/templates/wagtailusers/users/list.html:12
msgid "Name"
msgstr "Nachname"
msgstr "Name"

#: mpicms/templates/personal/list.html:93
msgid "Email"
Expand Down
2 changes: 1 addition & 1 deletion mpicms/templates/personal/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ <h1 class="title has-text-centered">{% trans 'Contact List' %}</h1>
var search_field = document.getElementById('search_field');
search_field.addEventListener('keyup', function() {
var searchString = search_field.value;
userList.search(searchString, ['first_name', 'last_name', 'email', 'phone', 'positions', 'special_functions', 'groups'], searchFunction);
userList.search(searchString, ['name', 'email', 'phone', 'room', ], searchFunction);
});

</script>