mirror of
https://github.com/twisterarmy/twister-html.git
synced 2025-01-14 08:58:05 +00:00
Merge pull request #13 from dionyziz/search_with_at
Searching for users with @ should work (fixes #6)
This commit is contained in:
commit
e20e6b8623
@ -355,6 +355,11 @@ function closeSearchDialog()
|
|||||||
|
|
||||||
function userSearchKeypress(item) {
|
function userSearchKeypress(item) {
|
||||||
var partialName = $(".userMenu-search-field").val().toLowerCase();
|
var partialName = $(".userMenu-search-field").val().toLowerCase();
|
||||||
|
|
||||||
|
if ( partialName.substr( 0, 1 ) == '@' ) {
|
||||||
|
partialName = partialName.substr( 1 );
|
||||||
|
}
|
||||||
|
|
||||||
//var partialName = item.val();
|
//var partialName = item.val();
|
||||||
|
|
||||||
if( !partialName.length ) {
|
if( !partialName.length ) {
|
||||||
|
Loading…
Reference in New Issue
Block a user