diff options
author | Mario <mario@mariovavti.com> | 2022-11-18 10:43:33 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2022-11-18 10:43:33 +0000 |
commit | 59e6989cbcc90ae13eb175e4f1730a9c9d4fc6cd (patch) | |
tree | d1a13f8f457f90aba0fb6aa13fc62a094c0f6cbf /view/js/main.js | |
parent | 0e6b27c9f46141c3ca92fc8dddc51d866cf5f3c9 (diff) | |
download | volse-hubzilla-59e6989cbcc90ae13eb175e4f1730a9c9d4fc6cd.tar.gz volse-hubzilla-59e6989cbcc90ae13eb175e4f1730a9c9d4fc6cd.tar.bz2 volse-hubzilla-59e6989cbcc90ae13eb175e4f1730a9c9d4fc6cd.zip |
hq widget: implement thread unseen items count
Diffstat (limited to 'view/js/main.js')
-rw-r--r-- | view/js/main.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/view/js/main.js b/view/js/main.js index aff6eab4d..c409eed35 100644 --- a/view/js/main.js +++ b/view/js/main.js @@ -197,8 +197,7 @@ $(document).ready(function() { if (singlethread_modules.indexOf(module) !== -1) { history.pushState(stateObj, '', module + '/' + b64mid); - $('.message').removeClass('active'); - $('[data-b64mid="' + b64mid + '"].message').addClass('active'); + } if (b64mid) { @@ -207,6 +206,9 @@ $(document).ready(function() { if(! page_load) { prepareLiveUpdate(b64mid, notify_id); + $('.message').removeClass('active'); + $('[data-b64mid="' + b64mid + '"].message').addClass('active'); + $('[data-b64mid="' + b64mid + '"].message .badge').remove(); } } } |