Browse Source

Set auto-reload.js to minimum countdown delay after making a post

main
discomrade 2 years ago
parent
commit
9b29b30330
  1. 10
      js/auto-reload.js

10
js/auto-reload.js

@ -219,10 +219,12 @@ $(document).ready(function(){
return false; return false;
}; };
$(window).scroll(function() { $(post).on('submit', function(e){
recheck_activated(); poll_current_time = poll_interval_mindelay;
});
$(window).scrollStopped(function() {
// if the newest post is not visible // if the newest post is not visible
if($(this).scrollTop() + $(this).height() < if($(this).scrollTop() + $(this).height() <
$('div.post').last().position().top + $('div.post').last().height()) { $('div.post').last().position().top + $('div.post').last().height()) {

Loading…
Cancel
Save