mirror of
https://github.com/twisterarmy/twister-calm.git
synced 2025-03-12 13:31:21 +00:00
Revert "search valid usernames and hashtags"
This reverts commit d75cf96f25b6311786523fef048e33c593a1ba08.
This commit is contained in:
parent
c69e22a803
commit
0aa5c314d7
@ -367,18 +367,12 @@ function userSearchKeypress(item) {
|
||||
// Enter pressed
|
||||
var dummy = $('<a></a>');
|
||||
if (prefix == '#') { // hashtag
|
||||
partialName = _extractHashtag(partialName);
|
||||
if (partialName) {
|
||||
dummy.attr('href', $.MAL.hashtagUrl(partialName));
|
||||
dummy.text('#' + partialName);
|
||||
openHashtagModal.call(dummy.get(0), item);
|
||||
}
|
||||
dummy.attr('href', $.MAL.hashtagUrl(partialName));
|
||||
dummy.text('#' + partialName);
|
||||
openHashtagModal.call(dummy.get(0), item);
|
||||
} else { // username
|
||||
partialName = _extractUsername(partialName);
|
||||
if (partialName) {
|
||||
dummy.attr('href', $.MAL.userUrl(partialName));
|
||||
openProfileModal.call(dummy.get(0), item);
|
||||
}
|
||||
dummy.attr('href', $.MAL.userUrl(partialName));
|
||||
openProfileModal.call(dummy.get(0), item);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user