diff options
author | Struan Donald <struan@exo.org.uk> | 2018-06-15 12:33:47 +0100 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2018-07-03 11:55:53 +0100 |
commit | 04e49afc9a7c10405464c62b0cfd6f6c55b286ac (patch) | |
tree | ec6b4d950a201c87a26c4aae6a1a4fe6bed45b5b /t/app/controller | |
parent | df2e6c6fd66c46ac0b00a38c5aa00d056bbde4d1 (diff) |
fix pushState pagination
Using `$('.pagination')` everywhere in javascript was causing issues
because that returns two elements. This was especially true when
triggering events as it was triggering two events so the data was being
loaded twice. This was also resulting in resetting the page to the
initial page so clicking the back button would always return to the
first page of results.
This also sets `use_page` when clicking the back button otherwise it
also loads the initial page.
Diffstat (limited to 't/app/controller')
0 files changed, 0 insertions, 0 deletions