mirror of
https://github.com/XRPLF/xrpl-dev-portal.git
synced 2025-11-20 19:55:54 +00:00
RPC tool: fix pagination (pg 2→1 'prev')
This commit is contained in:
@@ -175,7 +175,6 @@ jQuery(function ($) {
|
|||||||
|
|
||||||
$('.account-tx-back').click(function () {
|
$('.account-tx-back').click(function () {
|
||||||
$("#account_tx").text("... loading ...");
|
$("#account_tx").text("... loading ...");
|
||||||
let previous_markers = $(".account-tx-back").data("marker")
|
|
||||||
pagedAccountTx(currentTarget, "prev");
|
pagedAccountTx(currentTarget, "prev");
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -243,6 +242,7 @@ jQuery(function ($) {
|
|||||||
if (prev_marker) {
|
if (prev_marker) {
|
||||||
opts["marker"] = prev_marker
|
opts["marker"] = prev_marker
|
||||||
} // omit to ask for page 1
|
} // omit to ask for page 1
|
||||||
|
currentMarker = prev_marker
|
||||||
} else if (page === "next") {
|
} else if (page === "next") {
|
||||||
opts["marker"] = nextMarker
|
opts["marker"] = nextMarker
|
||||||
if (currentMarker) {
|
if (currentMarker) {
|
||||||
@@ -259,7 +259,7 @@ jQuery(function ($) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function updateTxMarkerNav(result) {
|
function updateTxMarkerNav(result) {
|
||||||
if (previousMarkers.length) {
|
if (currentMarker) {
|
||||||
$(".account-tx-back").parent().show()
|
$(".account-tx-back").parent().show()
|
||||||
} else {
|
} else {
|
||||||
$(".account-tx-back").parent().hide()
|
$(".account-tx-back").parent().hide()
|
||||||
|
|||||||
Reference in New Issue
Block a user