mirror of
https://github.com/twisterarmy/twister-html.git
synced 2025-09-09 04:31:50 +00:00
tune profile modals openning
This commit is contained in:
parent
07260049cc
commit
b7a8240bbc
@ -789,6 +789,12 @@ function addToCommonDMsList(list, targetAlias, message) {
|
|||||||
list.append(item);
|
list.append(item);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function handleClickOpenProfileModal(event) {
|
||||||
|
muteEvent(event, true);
|
||||||
|
event.data = {route: $(event.target).attr('href')};
|
||||||
|
routeOnClick(event);
|
||||||
|
}
|
||||||
|
|
||||||
function openConversationClick(event) {
|
function openConversationClick(event) {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
event.stopPropagation();
|
event.stopPropagation();
|
||||||
@ -2266,7 +2272,7 @@ function initInterfaceCommon() {
|
|||||||
else
|
else
|
||||||
$('.undo-unicode').on('click', undoLastUnicode);
|
$('.undo-unicode').on('click', undoLastUnicode);
|
||||||
|
|
||||||
$('.open-profile-modal').on('click', muteEvent);
|
getElem('.open-profile-modal', true).on('click 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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user