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;
};
$(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()) {

Loading…
Cancel
Save