tune profile modals openning

This commit is contained in:
Simon Grim 2016-03-25 04:06:15 +05:00
parent 9fcadc9634
commit e5a8c44d11
2 changed files with 4 additions and 4 deletions

View File

@ -790,8 +790,7 @@ function addToCommonDMsList(list, targetAlias, message) {
}
function handleClickOpenProfileModal(event) {
muteEvent(event, true);
event.data = {route: $(event.target).attr('href')};
event.data = {route: $(this).attr('href')};
routeOnClick(event);
}
@ -2272,7 +2271,8 @@ function initInterfaceCommon() {
else
$('.undo-unicode').on('click', undoLastUnicode);
getElem('.open-profile-modal', true).on('click mouseup', handleClickOpenProfileModal);
getElem('.open-profile-modal', true)
.on('click', muteEvent).on('mouseup', handleClickOpenProfileModal);
//$('.open-hashtag-modal').on('click', openHashtagModal);
//$('.open-following-modal').on('click', openFollowingModal);
$('.userMenu-connections a').on('click', openMentionsModal);

View File

@ -472,7 +472,7 @@ function whoFollows(username) {
function fillWhoFollows(list, item, offset, size) {
for (var i = offset; i < offset + size; i++) {
var follower_link = $('<a class="mini-follower-link"></a>')
.on('click mouseup', handleClickOpenProfileModal);
.on('click', muteEvent).on('mouseup', handleClickOpenProfileModal);
// link follower to profile page
follower_link.attr("data-screen-name", list[i]);