fix number of pages in search

This commit is contained in:
ccd0 2014-09-07 10:01:54 -07:00
parent d76fa3fd13
commit 75fbb908c8

View File

@ -178,7 +178,7 @@ Index =
getPagesNum: ->
if Index.isSearching
Math.ceil (Index.sortedNodes.length / 2) / Index.threadsNumPerPage
Math.ceil Index.sortedNodes.length / Index.threadsNumPerPage
else
Index.pagesNum
getMaxPageNum: ->