diff options
Diffstat (limited to 'view/js')
-rw-r--r-- | view/js/main.js | 6 | ||||
-rw-r--r-- | view/js/mod_hq.js | 7 |
2 files changed, 5 insertions, 8 deletions
diff --git a/view/js/main.js b/view/js/main.js index a3f238a45..78bd790cd 100644 --- a/view/js/main.js +++ b/view/js/main.js @@ -204,8 +204,12 @@ $(document).ready(function() { }); window.onpopstate = function(e) { - if(e.state !== null && e.state.b64mid !== bParam_mid) + if(e.state !== null && e.state.b64mid !== bParam_mid) { prepareLiveUpdate(e.state.b64mid, ''); + $('.message').removeClass('active'); + $('[data-b64mid="' + e.state.b64mid + '"].message').addClass('active'); + } + }; //mod_mail only diff --git a/view/js/mod_hq.js b/view/js/mod_hq.js index ddcde4fcd..0a3939913 100644 --- a/view/js/mod_hq.js +++ b/view/js/mod_hq.js @@ -1,20 +1,13 @@ $(document).ready(function() { $(document).on('click', '#jot-toggle', function(e) { - e.preventDefault(); - e.stopPropagation(); $(window).scrollTop(0); $('#jot-popup').toggle(); - $('#profile-jot-text').focus(); - }); $(document).on('click', '#notes-toggle', function(e) { - e.preventDefault(); - e.stopPropagation(); $(window).scrollTop(0); $('#personal-notes').toggleClass('d-none'); - $('#note-text').focus(); }); }); |