diff --git a/js/interface_common.js b/js/interface_common.js index c99a6c3..8646cdf 100644 --- a/js/interface_common.js +++ b/js/interface_common.js @@ -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); diff --git a/js/twister_following.js b/js/twister_following.js index ea4aa53..a45cd89 100644 --- a/js/twister_following.js +++ b/js/twister_following.js @@ -472,7 +472,7 @@ function whoFollows(username) { function fillWhoFollows(list, item, offset, size) { for (var i = offset; i < offset + size; i++) { var follower_link = $('') - .on('click mouseup', handleClickOpenProfileModal); + .on('click', muteEvent).on('mouseup', handleClickOpenProfileModal); // link follower to profile page follower_link.attr("data-screen-name", list[i]);