Fix index search going badly when inputing only spaces.

This commit is contained in:
Mayhem 2014-01-20 22:45:34 +01:00
parent ba0830e828
commit 0e10e3fd81

View File

@ -393,6 +393,7 @@ Index =
else else
pageNum = Index.getCurrentPage() pageNum = Index.getCurrentPage()
else else
return unless Index.searchInput.dataset.searching
pageNum = Index.pageBeforeSearch pageNum = Index.pageBeforeSearch
delete Index.pageBeforeSearch delete Index.pageBeforeSearch
<% if (type === 'userscript') { %> <% if (type === 'userscript') { %>