aboutsummaryrefslogtreecommitdiffstats
path: root/view/js/mod_hq.js
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2022-07-15 17:50:02 +0000
committerMario <mario@mariovavti.com>2022-07-15 17:50:02 +0000
commitd6a9a9927c23e8b4307dc2164407481f8c542682 (patch)
treedf67d55b5e19b884c02d92e014cfd5c4e24406ad /view/js/mod_hq.js
parent40b46368584036ede12fbc94619497bba73b6095 (diff)
downloadvolse-hubzilla-d6a9a9927c23e8b4307dc2164407481f8c542682.tar.gz
volse-hubzilla-d6a9a9927c23e8b4307dc2164407481f8c542682.tar.bz2
volse-hubzilla-d6a9a9927c23e8b4307dc2164407481f8c542682.zip
HQ dashboard - initial checkin
Diffstat (limited to 'view/js/mod_hq.js')
-rw-r--r--view/js/mod_hq.js33
1 files changed, 29 insertions, 4 deletions
diff --git a/view/js/mod_hq.js b/view/js/mod_hq.js
index 5f8430b4d..dc274c5bf 100644
--- a/view/js/mod_hq.js
+++ b/view/js/mod_hq.js
@@ -1,17 +1,42 @@
$(document).ready(function() {
- $(document).on('click', '.jot-toggle', function(e) {
+ $('.autotime').timeago();
+
+ if (bParam_mid) {
+ src = 'hq';
+ $('.channel-activities-toggle').removeClass('d-none');
+ }
+ else {
+ $('#channel-activities').removeClass('d-none');
+ }
+
+ $(document).one('click', '.notification, .message', function(e) {
+ page_load = false;
+ followUpPageLoad = true;
+ src = 'hq';
+ $('#channel-activities').addClass('d-none');
+ $('.channel-activities-toggle').removeClass('d-none');
+ });
+
+ $(document).on('click', '.channel-activities-toggle', function(e) {
$(window).scrollTop(0);
$(document).trigger('hz:hqControlsClickAction');
+ $('#channel-activities').toggleClass('d-none');
+ $(this).toggleClass('active');
+ });
+
+ $(document).on('click', '.jot-toggle', function(e) {
+ $(document).trigger('hz:hqControlsClickAction');
$('#jot-popup').toggle();
- $('#profile-jot-text').focus();
+ $('#profile-jot-text').focus().get(0).scrollIntoView({block: 'center'});
+ $(this).toggleClass('active');
});
$(document).on('click', '.notes-toggle', function(e) {
- $(window).scrollTop(0);
$(document).trigger('hz:hqControlsClickAction');
$('#personal-notes').toggleClass('d-none');
- $('#note-text').focus();
+ $('#note-text-html').get(0).scrollIntoView({block: 'center'});
+ $(this).toggleClass('active');
});
});