Browse Source

Revert "search valid usernames and hashtags"

This reverts commit d75cf96f25.
master
Hedgehog 11 years ago
parent
commit
0aa5c314d7
  1. 16
      js/twister_following.js

16
js/twister_following.js

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

Loading…
Cancel
Save