Skip to content

Commit 003095e

Browse files
authored
Merge pull request #1662 from Shadow243/fix-cache-js-issue
fix(frontend): resolve Cash.js SyntaxError by using .first() method
2 parents d661b2b + 8aa3085 commit 003095e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/core/js_modules/actions/pagination.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
function refreshNextButton(current) {
2-
const totalPages = $(".pagination .max:first").text();
2+
const totalPages = $(".pagination .max").first().text();
33
if (parseInt(current) >= parseInt(totalPages)) {
44
$(".pagination .next").prop('disabled', true);
55
} else {
@@ -16,7 +16,7 @@ function refreshPreviousButton(current) {
1616
}
1717

1818
async function nextPage() {
19-
const currentPage = $(".pagination .current:first").text();
19+
const currentPage = $(".pagination .current").first().text();
2020

2121
const nextPage = parseInt(currentPage) + 1;
2222

0 commit comments

Comments
 (0)