aboutsummaryrefslogtreecommitdiffstats
path: root/view/js
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2017-11-24 15:01:34 +0100
committerMario Vavti <mario@mariovavti.com>2017-11-24 15:01:34 +0100
commit87eaa6d8e5a5fece531a8ce191f8e89e90f673c2 (patch)
treed0caef88e6ba72f1009659a11c666fffe59ac982 /view/js
parent14f12927436f71c753127be83f348d89b99401b6 (diff)
downloadvolse-hubzilla-87eaa6d8e5a5fece531a8ce191f8e89e90f673c2.tar.gz
volse-hubzilla-87eaa6d8e5a5fece531a8ce191f8e89e90f673c2.tar.bz2
volse-hubzilla-87eaa6d8e5a5fece531a8ce191f8e89e90f673c2.zip
some more work on mod hq
Diffstat (limited to 'view/js')
-rw-r--r--view/js/main.js1
-rw-r--r--view/js/mod_hq.js12
2 files changed, 13 insertions, 0 deletions
diff --git a/view/js/main.js b/view/js/main.js
index c39d6c84c..1738ca7e9 100644
--- a/view/js/main.js
+++ b/view/js/main.js
@@ -437,6 +437,7 @@ function NavUpdate() {
if($('#live-channel').length) { src = 'channel'; liveUpdate(); }
if($('#live-pubstream').length) { src = 'pubstream'; liveUpdate(); }
if($('#live-display').length) { src = 'display'; liveUpdate(); }
+ if($('#live-hq').length) { src = 'hq'; liveUpdate(); }
if($('#live-search').length) { src = 'search'; liveUpdate(); }
// if($('#live-cards').length) { src = 'cards'; liveUpdate(); }
// if($('#live-articles').length) { src = 'articles'; liveUpdate(); }
diff --git a/view/js/mod_hq.js b/view/js/mod_hq.js
index 8bbd5e3ad..3ce5f1ca6 100644
--- a/view/js/mod_hq.js
+++ b/view/js/mod_hq.js
@@ -1,3 +1,15 @@
+$(document).on('click', '#jot-toggle', function(e) {
+ e.preventDefault();
+ e.stopPropagation();
+
+ $(this).toggleClass('active');
+ $(window).scrollTop(0);
+ $('#jot-popup').toggle();
+ $('#profile-jot-text').focus();
+
+});
+
+
function hqLiveUpdate(notify_id) {
if(typeof profile_uid === 'undefined') profile_uid = false; /* Should probably be unified with channelId defined in head.tpl */