mirror of
https://github.com/SuperBFG7/ympd
synced 2024-11-05 22:36:16 +00:00
Fix: improve search card pagination
This commit is contained in:
parent
b63fe14ccc
commit
05a3525f39
@ -324,4 +324,8 @@ div.key {
|
|||||||
|
|
||||||
ol#searchCrumb {
|
ol#searchCrumb {
|
||||||
padding: .5rem;
|
padding: .5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.nodropdown::after {
|
||||||
|
content: none;
|
||||||
}
|
}
|
@ -2100,13 +2100,16 @@ function setPagination(total, returned) {
|
|||||||
( j + 1) + '</button>';
|
( j + 1) + '</button>';
|
||||||
}
|
}
|
||||||
document.getElementById(cat + p[i] + 'Pages').innerHTML = pl;
|
document.getElementById(cat + p[i] + 'Pages').innerHTML = pl;
|
||||||
|
document.getElementById(cat + p[i] + 'Page').classList.remove('nodropdown');
|
||||||
}
|
}
|
||||||
else if (total == -1) {
|
else if (total == -1) {
|
||||||
document.getElementById(cat + p[i] + 'Page').setAttribute('disabled', 'disabled');
|
document.getElementById(cat + p[i] + 'Page').setAttribute('disabled', 'disabled');
|
||||||
document.getElementById(cat + p[i] + 'Page').innerText = (app.current.page / settings.maxElementsPerPage + 1);
|
document.getElementById(cat + p[i] + 'Page').innerText = (app.current.page / settings.maxElementsPerPage + 1);
|
||||||
|
document.getElementById(cat + p[i] + 'Page').classList.add('nodropdown');
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
document.getElementById(cat + p[i] + 'Page').setAttribute('disabled', 'disabled');
|
document.getElementById(cat + p[i] + 'Page').setAttribute('disabled', 'disabled');
|
||||||
|
document.getElementById(cat + p[i] + 'Page').classList.add('nodropdown');
|
||||||
}
|
}
|
||||||
|
|
||||||
if (total > app.current.page + settings.maxElementsPerPage || total == -1 && returned >= settings.maxElementsPerPage) {
|
if (total > app.current.page + settings.maxElementsPerPage || total == -1 && returned >= settings.maxElementsPerPage) {
|
||||||
|
Loading…
Reference in New Issue
Block a user