|
|
@ -711,7 +711,7 @@ function addPeerToFollowingList(list, peerAlias) { |
|
|
|
.on('mouseup', {route: $.MAL.mentionsUrl(peerAlias)}, routeOnClick); |
|
|
|
.on('mouseup', {route: $.MAL.mentionsUrl(peerAlias)}, routeOnClick); |
|
|
|
getAvatar(peerAlias, item.find('.mini-profile-photo')); |
|
|
|
getAvatar(peerAlias, item.find('.mini-profile-photo')); |
|
|
|
getFullname(peerAlias, item.find('.mini-profile-name')); |
|
|
|
getFullname(peerAlias, item.find('.mini-profile-name')); |
|
|
|
getStatusTime(peerAlias, item.find('.user-status-time')); |
|
|
|
getStatusTime(peerAlias, item.find('.latest-activity .time')); |
|
|
|
|
|
|
|
|
|
|
|
if (peerAlias === defaultScreenName) |
|
|
|
if (peerAlias === defaultScreenName) |
|
|
|
item.find('.following-config').hide(); |
|
|
|
item.find('.following-config').hide(); |
|
|
@ -752,7 +752,7 @@ function fillWhoToFollowModal(list, hlist, start) { |
|
|
|
getFullname(utf, item.find('.twister-user-full')); |
|
|
|
getFullname(utf, item.find('.twister-user-full')); |
|
|
|
getBioToElem(utf, item.find('.bio')); |
|
|
|
getBioToElem(utf, item.find('.bio')); |
|
|
|
getFullname(followingUsers[i], item.find('.followed-by').text(followingUsers[i])); |
|
|
|
getFullname(followingUsers[i], item.find('.followed-by').text(followingUsers[i])); |
|
|
|
getStatusTime(utf,item.find('.user-status-time')); |
|
|
|
getStatusTime(utf, item.find('.latest-activity .time')); |
|
|
|
|
|
|
|
|
|
|
|
item.find('.twister-user-remove').remove(); |
|
|
|
item.find('.twister-user-remove').remove(); |
|
|
|
|
|
|
|
|
|
|
@ -875,14 +875,22 @@ function handleClickOpenProfileModal(event) { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
function handleClickOpenConversation(event) { |
|
|
|
function handleClickOpenConversation(event) { |
|
|
|
event.preventDefault(); |
|
|
|
var elem = $(event.target).closest(event.data.feeder); |
|
|
|
event.stopPropagation(); |
|
|
|
if (!elem.length) { |
|
|
|
|
|
|
|
muteEvent(event, true); |
|
|
|
|
|
|
|
return; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
var elem = $(event.target); |
|
|
|
var post = { |
|
|
|
var postData = elem.closest(event.data.feeder); |
|
|
|
writer: elem.attr('data-screen-name'), |
|
|
|
|
|
|
|
id: elem.attr('data-id') |
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
if (!post.writer || !post.id) { |
|
|
|
|
|
|
|
muteEvent(event, true); |
|
|
|
|
|
|
|
return; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
event.data.route = '#conversation?post=' + postData.attr('data-screen-name') |
|
|
|
event.data.route = '#conversation?post=' + post.writer + ':post' + post.id; |
|
|
|
+ ':post' + postData.attr('data-id'); |
|
|
|
|
|
|
|
routeOnClick(event); |
|
|
|
routeOnClick(event); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -2623,7 +2631,8 @@ function initInterfaceCommon() { |
|
|
|
displayQueryPending($('.hashtag-modal .postboard-posts')); |
|
|
|
displayQueryPending($('.hashtag-modal .postboard-posts')); |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
$('.user-status-time').on('mouseup', {feeder: '.user-status-time'}, handleClickOpenConversation); |
|
|
|
getElem('.latest-activity', true).on('mouseup', |
|
|
|
|
|
|
|
{feeder: '.latest-activity'}, handleClickOpenConversation); |
|
|
|
|
|
|
|
|
|
|
|
replaceDashboards(); |
|
|
|
replaceDashboards(); |
|
|
|
$(window).resize(replaceDashboards); |
|
|
|
$(window).resize(replaceDashboards); |
|
|
|