mirror of
https://github.com/twisterarmy/twister-html.git
synced 2025-01-14 00:48: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) {
|
function handleClickOpenProfileModal(event) {
|
||||||
muteEvent(event, true);
|
event.data = {route: $(this).attr('href')};
|
||||||
event.data = {route: $(event.target).attr('href')};
|
|
||||||
routeOnClick(event);
|
routeOnClick(event);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2272,7 +2271,8 @@ function initInterfaceCommon() {
|
|||||||
else
|
else
|
||||||
$('.undo-unicode').on('click', undoLastUnicode);
|
$('.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-hashtag-modal').on('click', openHashtagModal);
|
||||||
//$('.open-following-modal').on('click', openFollowingModal);
|
//$('.open-following-modal').on('click', openFollowingModal);
|
||||||
$('.userMenu-connections a').on('click', openMentionsModal);
|
$('.userMenu-connections a').on('click', openMentionsModal);
|
||||||
|
@ -472,7 +472,7 @@ function whoFollows(username) {
|
|||||||
function fillWhoFollows(list, item, offset, size) {
|
function fillWhoFollows(list, item, offset, size) {
|
||||||
for (var i = offset; i < offset + size; i++) {
|
for (var i = offset; i < offset + size; i++) {
|
||||||
var follower_link = $('<a class="mini-follower-link"></a>')
|
var follower_link = $('<a class="mini-follower-link"></a>')
|
||||||
.on('click mouseup', handleClickOpenProfileModal);
|
.on('click', muteEvent).on('mouseup', handleClickOpenProfileModal);
|
||||||
|
|
||||||
// link follower to profile page
|
// link follower to profile page
|
||||||
follower_link.attr("data-screen-name", list[i]);
|
follower_link.attr("data-screen-name", list[i]);
|
||||||
|
Loading…
Reference in New Issue
Block a user