mirror of
https://gitlab.science.ru.nl/technicie/MarietjeDjango.git
synced 2025-12-09 18:52:23 +01:00
Disable first, previous, next and last buttons on the applicable search pages.
This commit is contained in:
committed by
Daan Sprenkels
parent
f50e76626c
commit
041cd6e2b6
@ -279,6 +279,10 @@ function getSongs()
|
||||
}
|
||||
pageNumSelect.val(result.current_page);
|
||||
$('.pagesize').val(result.per_page);
|
||||
$('button.first').prop('disabled', result.current_page == 1);
|
||||
$('button.prev').prop('disabled', result.current_page == 1);
|
||||
$('button.next').prop('disabled', result.current_page == result.last_page);
|
||||
$('button.last').prop('disabled', result.current_page == result.last_page);
|
||||
refreshingSongs = false;
|
||||
if(requestViewOpen) {
|
||||
window.scrollTo(0, 0);
|
||||
|
||||
Reference in New Issue
Block a user