Browse Source

tune profile modals openning

readme-update
Simon Grim 9 years ago
parent
commit
b7a8240bbc
  1. 8
      js/interface_common.js

8
js/interface_common.js

@ -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…
Cancel
Save