aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl/messages_widget.tpl
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2021-06-23 21:15:26 +0200
committerMario Vavti <mario@mariovavti.com>2021-06-23 21:15:26 +0200
commitdfcd8395d5aff83b8d6e1fa83346f0f0bd78f879 (patch)
tree5fb84907619bdc02c7434dcf6318bbbae5786dfe /view/tpl/messages_widget.tpl
parentcf791a19099e0e4a8a0679e720a4f99755083cca (diff)
parent6e91bee0ba605b938bddf0570e747d6d7be1c712 (diff)
downloadvolse-hubzilla-dfcd8395d5aff83b8d6e1fa83346f0f0bd78f879.tar.gz
volse-hubzilla-dfcd8395d5aff83b8d6e1fa83346f0f0bd78f879.tar.bz2
volse-hubzilla-dfcd8395d5aff83b8d6e1fa83346f0f0bd78f879.zip
Merge branch 'dev' of https://framagit.org/hubzilla/core into dev
Diffstat (limited to 'view/tpl/messages_widget.tpl')
-rw-r--r--view/tpl/messages_widget.tpl11
1 files changed, 7 insertions, 4 deletions
diff --git a/view/tpl/messages_widget.tpl b/view/tpl/messages_widget.tpl
index d3dbd7be9..6f888962d 100644
--- a/view/tpl/messages_widget.tpl
+++ b/view/tpl/messages_widget.tpl
@@ -59,9 +59,14 @@
var get_messages_page_active = false;
var messages_type;
+ $(document).ready(function () {
+ $('.messages-timeago').timeago();
+ $('.message[data-b64mid=\'' + bParam_mid + '\']').addClass('active');
+ });
+
$('#messages-widget').on('scroll', function() {
if(this.scrollTop > this.scrollHeight - this.clientHeight - (this.scrollHeight/7)) {
- get_messages_page('hq');
+ get_messages_page();
}
});
@@ -75,10 +80,8 @@
get_messages_page();
});
- $('.messages-timeago').timeago();
- $('.message[data-b64mid=\'' + bParam_mid + '\']').addClass('active');
-
function get_messages_page() {
+
if (get_messages_page_active)
return;