mirror of
https://github.com/twisterarmy/twister-html.git
synced 2025-03-12 05:21:18 +00:00
add reset of new DMs counter on click on the show-new-twists button inside mentions' modal
This commit is contained in:
parent
cf814dfd18
commit
e406822f17
@ -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',
|
||||
|
Loading…
x
Reference in New Issue
Block a user