Browse Source

tune profile modals openning

readme-update
Simon Grim 9 years ago
parent
commit
e5a8c44d11
  1. 6
      js/interface_common.js
  2. 2
      js/twister_following.js

6
js/interface_common.js

@ -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);

2
js/twister_following.js

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