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:
parent
0dcea87b99
commit
ee5372784e
@ -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();
|
||||
|
Reference in New Issue
Block a user