mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-20 01:35:12 +00:00
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
1 changed files with 0 additions and 16 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue