mirror of
https://github.com/twisterarmy/twister-html.git
synced 2025-01-14 08:58:05 +00:00
tune profile modals openning
This commit is contained in:
parent
9fcadc9634
commit
e5a8c44d11
@ -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);
|
||||
|
@ -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]);
|
||||
|
Loading…
Reference in New Issue
Block a user