aboutsummaryrefslogtreecommitdiffstats
path: root/view/js/main.js
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2020-07-16 10:49:08 +0000
committerMario <mario@mariovavti.com>2020-07-16 10:49:08 +0000
commitd2f1c3743172dc59e5935d77322998fa03c2cc22 (patch)
tree285a4c331547add470ae45dcef986fa466697816 /view/js/main.js
parent817fe8d485ca7184a815028c2c5fb94b442a210f (diff)
downloadvolse-hubzilla-d2f1c3743172dc59e5935d77322998fa03c2cc22.tar.gz
volse-hubzilla-d2f1c3743172dc59e5935d77322998fa03c2cc22.tar.bz2
volse-hubzilla-d2f1c3743172dc59e5935d77322998fa03c2cc22.zip
more itemspage work
Diffstat (limited to 'view/js/main.js')
-rw-r--r--view/js/main.js28
1 files changed, 28 insertions, 0 deletions
diff --git a/view/js/main.js b/view/js/main.js
index 1e7ff59c4..77d2948c7 100644
--- a/view/js/main.js
+++ b/view/js/main.js
@@ -223,6 +223,34 @@ $(document).ready(function() {
cache_next_page();
});
+//hide_aside plugin
+ var hide_aside_timer = null;
+
+ $(document).on('hz:updateConvItems hz:updatePageItems', function(event) {
+ if(bParam_page > 2) {
+ if(hide_aside_timer)
+ clearTimeout(hide_aside_timer);
+
+ hide_aside_timer = setTimeout(function(){$('aside').animate({ opacity: 0 }, 3000);}, 2000);
+ }
+ });
+
+ $('aside, aside *').on('mouseover', function(){
+ clearTimeout(hide_aside_timer);
+ if(bParam_page > 2)
+ $('aside').animate({ opacity: 1 });
+ });
+
+ $('aside').on('mouseleave', function(){
+ if(bParam_page > 2) {
+ if(hide_aside_timer)
+ clearTimeout(hide_aside_timer);
+
+ hide_aside_timer = setTimeout(function(){$('aside').animate({ opacity: 0 }, 3000);}, 7000);
+ }
+ });
+//end plugin
+
});
function getConversationSettings() {