|
|
@ -875,14 +875,22 @@ function handleClickOpenProfileModal(event) { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
function handleClickOpenConversation(event) { |
|
|
|
function handleClickOpenConversation(event) { |
|
|
|
event.preventDefault(); |
|
|
|
var elem = $(event.target).closest(event.data.feeder); |
|
|
|
event.stopPropagation(); |
|
|
|
if (!elem.length) { |
|
|
|
|
|
|
|
muteEvent(event, true); |
|
|
|
|
|
|
|
return; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
var elem = $(event.target); |
|
|
|
var post = { |
|
|
|
var postData = elem.closest(event.data.feeder); |
|
|
|
writer: elem.attr('data-screen-name'), |
|
|
|
|
|
|
|
id: elem.attr('data-id') |
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
if (!post.writer || !post.id) { |
|
|
|
|
|
|
|
muteEvent(event, true); |
|
|
|
|
|
|
|
return; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
event.data.route = '#conversation?post=' + postData.attr('data-screen-name') |
|
|
|
event.data.route = '#conversation?post=' + post.writer + ':post' + post.id; |
|
|
|
+ ':post' + postData.attr('data-id'); |
|
|
|
|
|
|
|
routeOnClick(event); |
|
|
|
routeOnClick(event); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|