mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
fix guide paging
This commit is contained in:
parent
6e862d3848
commit
b6a6d17151
1 changed files with 3 additions and 3 deletions
|
@ -104,17 +104,17 @@
|
||||||
$(channelPaging);
|
$(channelPaging);
|
||||||
}
|
}
|
||||||
|
|
||||||
Events.on(page.querySelector('.btnNextPage'), 'click', function () {
|
page.querySelector('.btnNextPage').addEventListener('click', function () {
|
||||||
channelQuery.StartIndex += channelQuery.Limit;
|
channelQuery.StartIndex += channelQuery.Limit;
|
||||||
reloadChannels(page);
|
reloadChannels(page);
|
||||||
});
|
});
|
||||||
|
|
||||||
Events.on(page.querySelector('.btnPreviousPage'), 'click', function () {
|
page.querySelector('.btnPreviousPage').addEventListener('click', function () {
|
||||||
channelQuery.StartIndex -= channelQuery.Limit;
|
channelQuery.StartIndex -= channelQuery.Limit;
|
||||||
reloadChannels(page);
|
reloadChannels(page);
|
||||||
});
|
});
|
||||||
|
|
||||||
Events.on(page.querySelector('#selectPageSize'), 'change', function () {
|
page.querySelector('#selectPageSize').addEventListener('change', function () {
|
||||||
channelQuery.Limit = parseInt(this.value);
|
channelQuery.Limit = parseInt(this.value);
|
||||||
channelQuery.StartIndex = 0;
|
channelQuery.StartIndex = 0;
|
||||||
reloadChannels(page);
|
reloadChannels(page);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue