diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2017-12-11 01:45:57 +0100 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2017-12-11 01:45:57 +0100 |
| commit | 6702125f12820c504ae18114f99fee3e13b2616f (patch) | |
| tree | f775b3d409951e1078547d380fc87a2da69cddb5 /public/assets/js/lib/views/search/results.js | |
| parent | 7b6a999eb2ae4ade37acd045cf8f806b4021d4c1 (diff) | |
moreeeeee styling
Diffstat (limited to 'public/assets/js/lib/views/search/results.js')
| -rw-r--r-- | public/assets/js/lib/views/search/results.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/public/assets/js/lib/views/search/results.js b/public/assets/js/lib/views/search/results.js index 2c992e7..516f10d 100644 --- a/public/assets/js/lib/views/search/results.js +++ b/public/assets/js/lib/views/search/results.js @@ -33,7 +33,7 @@ var SearchResults = View.extend({ start: res.meta.start + res.meta.limit, limit: res.meta.limit, } - this.$(".next_page").toggle(res.meta.start + res.meta.limit > res.meta.count) + this.$(".next_page").toggle(res.meta.next < res.meta.total) this.$(".next_page").attr("href", querystring(next_page)) res.results.forEach((result) => { if (! result.thread) { @@ -70,7 +70,7 @@ function bold_terms (s, terms) { return s } function querystring(opt){ - var s = Object.keys(opt).map((key) => { + return '?' + Object.keys(opt).map((key) => { return encodeURIComponent(key) + "=" + encodeURIComponent(opt[key]) }).join("&") } |
