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