remove the automatic ajax page load on pgdn key; it can load content much faster than you can page and potentially lead to memory exhaustion.

This commit is contained in:
redmatrix 2016-06-09 16:45:53 -07:00
parent 0dcea87b99
commit ee5372784e

View file

@ -321,22 +321,6 @@ $(function() {
return false;
}
}
if(event.keyCode == '34') {
if((pageHasMoreContent) && (! loadingPage)) {
$('#more').hide();
$('#no-more').hide();
next_page++;
scroll_next = true;
loadingPage = true;
if(($('.directory-end').length == 0) && ($('.photos-end').length == 0))
liveUpdate();
else
pageUpdate();
return true;
}
}
if(event.keyCode == '19' || (event.ctrlKey && event.which == '32')) {
event.preventDefault();