I guess that got reverted in a merge.

This commit is contained in:
Zixaphir 2014-01-12 18:03:54 -07:00
parent 2bf8d37781
commit 678e4d1116
3 changed files with 3 additions and 3 deletions

View File

@ -2323,7 +2323,7 @@
},
scroll: $.debounce(100, function() {
var nodes, nodesPerPage, pageNum;
if (Index.req || Conf['Index Mode'] !== 'infinite' || ((d.body.scrollTop || doc.scrollTop) <= doc.scrollHeight - (300 + window.innerHeight)) || g.VIEW === 'thread') {
if (Index.req || Conf['Index Mode'] !== 'infinite' || (doc.scrollTop <= doc.scrollHeight - (300 + window.innerHeight)) || g.VIEW === 'thread') {
return;
}
pageNum = Index.getCurrentPage() + 1;

View File

@ -2333,7 +2333,7 @@
},
scroll: $.debounce(100, function() {
var nodes, nodesPerPage, pageNum;
if (Index.req || Conf['Index Mode'] !== 'infinite' || ((d.body.scrollTop || doc.scrollTop) <= doc.scrollHeight - (300 + window.innerHeight)) || g.VIEW === 'thread') {
if (Index.req || Conf['Index Mode'] !== 'infinite' || (doc.scrollTop <= doc.scrollHeight - (300 + window.innerHeight)) || g.VIEW === 'thread') {
return;
}
pageNum = Index.getCurrentPage() + 1;

View File

@ -110,7 +110,7 @@ Index =
$.after $.id('delform'), Index.pagelist
scroll: $.debounce 100, ->
return if Index.req or Conf['Index Mode'] isnt 'infinite' or ((d.body.scrollTop or doc.scrollTop) <= doc.scrollHeight - (300 + window.innerHeight)) or g.VIEW is 'thread'
return if Index.req or Conf['Index Mode'] isnt 'infinite' or (doc.scrollTop <= doc.scrollHeight - (300 + window.innerHeight)) or g.VIEW is 'thread'
pageNum = Index.getCurrentPage() + 1
return Index.endNotice() if pageNum >= Index.pagesNum
nodesPerPage = Index.threadsNumPerPage * 2