Browse Source

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

readme-update
Simon Grim 8 years ago
parent
commit
e406822f17
  1. 10
      js/interface_common.js

10
js/interface_common.js

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

Loading…
Cancel
Save