add reset of new DMs counter on click on the show-new-twists button inside mentions' modal

This commit is contained in:
Simon Grim 2017-06-16 21:10:31 +05:00
parent cf814dfd18
commit e406822f17

View File

@ -2752,9 +2752,13 @@ function initInterfaceCommon() {
$('.userMenu-favs a').on('click', openFavsModal);
$('.favs-from-user').on('click', openFavsModal);
$('#hashtag-modal-template .postboard-news').on('click', function () {
$(this).hide();
displayQueryPending($('.hashtag-modal .postboard-posts'));
$('#hashtag-modal-template .postboard-news').on('click', function (event) {
var elem = $(event.target).hide().closest('.postboard').find('.postboard-posts');
displayQueryPending(elem);
if (elem.attr('data-request-id') === defaultScreenName + '@mention')
resetMentionsCount();
});
getElem('.latest-activity', true).on('mouseup',