issues
search
TheCacophonyProject
/
cacophony-web-old
Legacy web interface for cacophony-api
GNU Affero General Public License v3.0
2
stars
3
forks
source link
Change approach to pagination
#105
Closed
arthurmcgregor
closed
6 years ago
arthurmcgregor
commented
6 years ago
Hold page state in #pageNumber
Use limit and pageNumber to determine offset
Replace inc() and dec() with changePage("+1") and changePage("-1")
Add pageButtons(page) to update pageNumber and show/hide next/prev buttons
Update sendQuery(page) to allow a specific page to be queried (and it will determine the offset automatically using limit)
Closes #95
arthurmcgregor
commented
6 years ago
Thanks @CameronRP Hopefully fixed now
Closes #95