|
|
@ -367,19 +367,13 @@ function userSearchKeypress(item) { |
|
|
|
// Enter pressed
|
|
|
|
// Enter pressed
|
|
|
|
var dummy = $('<a></a>'); |
|
|
|
var dummy = $('<a></a>'); |
|
|
|
if (prefix == '#') { // hashtag
|
|
|
|
if (prefix == '#') { // hashtag
|
|
|
|
partialName = _extractHashtag(partialName); |
|
|
|
|
|
|
|
if (partialName) { |
|
|
|
|
|
|
|
dummy.attr('href', $.MAL.hashtagUrl(partialName)); |
|
|
|
dummy.attr('href', $.MAL.hashtagUrl(partialName)); |
|
|
|
dummy.text('#' + partialName); |
|
|
|
dummy.text('#' + partialName); |
|
|
|
openHashtagModal.call(dummy.get(0), item); |
|
|
|
openHashtagModal.call(dummy.get(0), item); |
|
|
|
} |
|
|
|
|
|
|
|
} else { // username
|
|
|
|
} else { // username
|
|
|
|
partialName = _extractUsername(partialName); |
|
|
|
|
|
|
|
if (partialName) { |
|
|
|
|
|
|
|
dummy.attr('href', $.MAL.userUrl(partialName)); |
|
|
|
dummy.attr('href', $.MAL.userUrl(partialName)); |
|
|
|
openProfileModal.call(dummy.get(0), item); |
|
|
|
openProfileModal.call(dummy.get(0), item); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
return false; |
|
|
|
return false; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|