From 9b29b30330c427f523b427bb38840dc1b7065207 Mon Sep 17 00:00:00 2001 From: discomrade Date: Thu, 3 Feb 2022 22:22:12 -0100 Subject: [PATCH] Set auto-reload.js to minimum countdown delay after making a post --- js/auto-reload.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/js/auto-reload.js b/js/auto-reload.js index 5aeb7b88..36ba9e92 100644 --- a/js/auto-reload.js +++ b/js/auto-reload.js @@ -219,10 +219,12 @@ $(document).ready(function(){ return false; }; - - $(window).scroll(function() { - recheck_activated(); - + + $(post).on('submit', function(e){ + poll_current_time = poll_interval_mindelay; + }); + + $(window).scrollStopped(function() { // if the newest post is not visible if($(this).scrollTop() + $(this).height() < $('div.post').last().position().top + $('div.post').last().height()) {