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) { @@ -790,8 +790,7 @@ function addToCommonDMsList(list, targetAlias, message) {
}
function handleClickOpenProfileModal(event) {
muteEvent(event, true);
event.data = {route: $(event.target).attr('href')};
event.data = {route: $(this).attr('href')};
routeOnClick(event);
}
@ -2272,7 +2271,8 @@ function initInterfaceCommon() { @@ -2272,7 +2271,8 @@ function initInterfaceCommon() {
else
$('.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-following-modal').on('click', openFollowingModal);
$('.userMenu-connections a').on('click', openMentionsModal);

2
js/twister_following.js

@ -472,7 +472,7 @@ function whoFollows(username) { @@ -472,7 +472,7 @@ function whoFollows(username) {
function fillWhoFollows(list, item, offset, size) {
for (var i = offset; i < offset + size; i++) {
var follower_link = $('<a class="mini-follower-link"></a>')
.on('click mouseup', handleClickOpenProfileModal);
.on('click', muteEvent).on('mouseup', handleClickOpenProfileModal);
// link follower to profile page
follower_link.attr("data-screen-name", list[i]);

Loading…
Cancel
Save