From b55676d08914d58927b5503a1bfa283397cd6d44 Mon Sep 17 00:00:00 2001 From: Mario Date: Thu, 17 Jun 2021 07:33:45 +0000 Subject: New landing page HQ with separate views for direct messages, public/limited messages and starred messages if the feature is enabled --- view/js/mod_hq.js | 26 ++++++++++++++++++-------- 1 file changed, 18 insertions(+), 8 deletions(-) (limited to 'view/js/mod_hq.js') diff --git a/view/js/mod_hq.js b/view/js/mod_hq.js index b321382bd..ddcde4fcd 100644 --- a/view/js/mod_hq.js +++ b/view/js/mod_hq.js @@ -1,10 +1,20 @@ -$(document).on('click', '#jot-toggle', function(e) { - e.preventDefault(); - e.stopPropagation(); - - $(this).toggleClass('active'); - $(window).scrollTop(0); - $('#jot-popup').toggle(); - $('#profile-jot-text').focus(); +$(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(); + }); }); -- cgit v1.2.3 From c268bc327a9c82acf05999039b0b3ab7191646eb Mon Sep 17 00:00:00 2001 From: Mario Date: Thu, 17 Jun 2021 10:14:23 +0000 Subject: fix issues with browser back button and minor cleanup --- view/js/mod_hq.js | 7 ------- 1 file changed, 7 deletions(-) (limited to 'view/js/mod_hq.js') 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(); }); }); -- cgit v1.2.3