From f3a01897a730f5580427948f49d8d0e50f84dcfc Mon Sep 17 00:00:00 2001 From: Dionysis Zindros Date: Tue, 7 Jan 2014 23:46:02 -0800 Subject: [PATCH] Searching for users with @ should work (fixes #6) --- twister_following.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/twister_following.js b/twister_following.js index 530fbfb..5e3c98c 100644 --- a/twister_following.js +++ b/twister_following.js @@ -355,6 +355,11 @@ function closeSearchDialog() function userSearchKeypress(item) { var partialName = $(".userMenu-search-field").val().toLowerCase(); + + if ( partialName.substr( 0, 1 ) == '@' ) { + partialName = partialName.substr( 1 ); + } + //var partialName = item.val(); if( !partialName.length ) {